I want to lock / unlock some features of iPhone such as send/receive text message开发者_开发百科, make the phone silent for incoming call etc while using my application.
Is it possible? If possible, How?
There is not an Apple-approved way of controlling this. However, you can "prevent" your phone from locking when your app is running. [UIApplication sharedApplication].idleTimerDisabled = YES
should do it.
精彩评论