My iPhone shuts off, then all the photos delete?
Recently my iPhone has been acting weird. The phone shuts off without telling me, and then randomly comes back on. All my social media accounts get logged out of, and as well as ALL my photos get deleted. There is completely nothing there. Then 5 minutes, they slowly restore picture by picture. I'm not really sure why its been happening but it has happened a few times. If someone could answer it would be appreciated, because I am really confused.
iPhone 6