how to fix your iphone when it keeps turning off?
1. Force Restart. If your iPhone or iPad keeps shutting down, won't charge, or keeps crashing, it might be time for a hard reset. Whether it's really shutting down on its own, or it's rapidly depleting the battery due to rogue processes or Wi-Fi or cellular radio activity, a hard reset can help.