How to keep people from locking my iphone

I have a passcode on my iphone but my friends sometimes manage to steal my phone and lock it until I have to wait an hour or so until it unlocks. It's so annoying, Is there a way that I can turn off the locking thing? Or something else?

You can plug it into your computer and go to itunes. Select "Restore" it will ask you to back up your iphone and choose yes so that you don't loose you pictures, contacts, ect.
Hope this helps!

  • 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 does my iphone 8 keep locking me out? I'm the only one who knows the knows the passcode, and i'm not dumb when it comes to downloading apps i can restart the phone twice so it fixes and i can get back in, but after that i'm locked out until my phone gets disabled like really apple i'm not buying your 1200 dollar phone
  • Why does my iPhone 5 keep locking itself? My iPhone 5 has recently been locking itself whenever I'm using it. Sometimes the "Slide to Power Off" screen will appear out of no where. Whenever I turn off the phone it just turns itself back on. This is the only problem I've had with it.
  • My iphone keeps on flashing and locking by itself every few seconds? Since 5 hours ago my iphone 5 has been flashing every 10 seconds intervals or so and it will lock by itself and turns on back to the lock screen by itself. It would even flash to the power off screen at times. I've tried syncing, charging and restarting my phone but things won't change. (I've had my phone for almost a year now + the decrease volume button is spoil) should i claim from warranty or are there any way i could resolve this flashing issue by myself?