My iPhone 4 keeps turning its self off when I'm not using it?

My iPhone 4 keeps turning off when I'm not using it. I restored my phone because it was really slow and then after a few days it would keep turning off. After I sleep I would wake up and it will be off and it will take atleast 5 minutes for it turn back on. Also it will be at 60% and turn off

Go to Apple forums, the people there are really helpful.

  • Will the iphone really update its self? I have the iphone 5 and my friend was telling me at 9 am tomorrow the new software arrive i said it won't effect me cuz i have no desire to update it but she said it will do it automatically is that true?
  • Why is my iPhone locking and trying to turn off by its self? My iPhone has been trying to turn itself off and locking the screen for ages, at first i thought that it would go away but it hasn't, it also turns itself back on if i turn it off does anyone know how to make it stop?
  • Why is my iPhone 5 turning off and not turning back on? This has happened twice now. My iPhone 5 has turned off in the middle of the night with a full charge and off the charger, and when I try to turn it back on it takes a couple tries. Has anybody experienced this?
  • Why does my iPhone 4 keep turning off and on by itself when its plugged in? I have an iPhone 4 and whenever I unplug it, it turns off. I can't get any source of signal, the Wi-Fi switch is greyed out, the date changed to December 31 and the time is an hour behind. The battery before I plugged it in was 20% its been 5 minutes and its up to 100%. Pretty weird.