Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Matt342

macrumors regular
Original poster
Jul 20, 2007
140
0
Hi!

Is there any way I can prevent the user from locking (sleeping) an iPhone (so when the user presses the top button nothing happens)?

Thanks!!

~Matt
 

grimjim

macrumors member
May 24, 2003
75
0
I suspect that this is impossible using the SDK. At least, I hope it is.
Possibly a silly question, but why would you want to prevent your users from switching off their own phones while running your app? I don't think I'd be happy using an app that did something like that. And I suspect that it wouldn't pass Apple's vetting procedures, either.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.