It’s not possible. However, you can “prevent” your phone from locking when your app is running. [UIApplication sharedApplication].idleTimerDisabled = YES
should do it.
More Related Contents:
- Get push notification while App in foreground iOS
- How to send json data in the Http request using NSURLRequest
- To ARC or not to ARC? What are the pros and cons? [closed]
- Display clearColor UIViewController over UIViewController
- Get PDF hyperlinks on iOS with Quartz
- Adding iOS UITableView HeaderView (not section header)
- Is it possible to include a quotation mark as part of an nsstring?
- Changing the size of the UISearchBar TextField?
- Objective C: How to upload image and text using HTTP POST?
- How to display multiple columns in a UITableView?
- Is it possible to use AutoLayout with UITableView’s tableHeaderView?
- How can I sort an NSArray containing NSDictionaries?
- Property Declaration and Automatic Backing Storage Allocation
- iPhone “Bookmark to Homescreen” removes cookies and session?
- Instance variables with underscore in Objective-C 2.0 and renaming with @synthetize leads to optimization warnings by the ‘Analyze’ tool of Xcode 4 [duplicate]
- Add an SQLite database to an iPhone app
- How to subclass UINavigationBar for a UINavigationController programmatically?
- How can I add a badge to a standard UIButton? [closed]
- How to select any Video or Movie file from UIImagePickerController
- How do I use UIPageControl to create multiple views?
- Sound not working in iPhone Simulator?
- Detect if device is charging
- How to enable iPod controls in the background to control non-iPod music in iOS 4?
- How to create subscript characters that’s not in Unicode in iOS
- Cannot view Quicktime movies over HTTPS in Safari or UIWebView
- UITableView with images scrolls very slowly [duplicate]
- Html5 cache manifest in a UIWebView?
- Adding back button to navigation bar
- subclassed UITableViewCell – backgroundView covers up anything I do in drawRect
- iPhone : How to set BackgroundColor of UIButton with buttonType UIButtonTypeCustom