The code below will prevent the iPhone from dimming its screen and ultimately going to sleep.
[UIApplication sharedApplication].idleTimerDisabled = YES;
[UIApplication sharedApplication].idleTimerDisabled = YES;
Range Operators: Closed Range operators Half-Open Range Operators One-Sided Ranges Closed Range Operators: a...b It defines...
No comments:
Post a Comment