Add the following line of code to stop the iPhone from going to sleep mode. (Use it judiciously, it will drain the device battery.)
[[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ];
Add the following line of code to stop the iPhone from going to sleep mode. (Use it judiciously, it will drain the device battery.)
[[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ];
To hide the status bar in iPhone, edit the Info.plist of your application by adding the below key.
<key>UIStatusBarHidden</key>
<true />
or programmatically hide or show the status bar by invoking:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
Bad Behavior has blocked 308 access attempts in the last 7 days.