If you need to turn off your iPhone but don’t have the passcode, there’s a way to do it with a text message. Here’s how:

  1. Open the “Settings” app on your iPhone.
  2. Tap “General.”
  3. Tap “Restrictions.”
  4. Tap “Enable Restrictions.”
  5. Type in your passcode and tap “OK.”
  6. Under “Device Management,” tap “Restrictions” again and select the option to disable restrictions for this device only (not for all devices). ..