开发者

iPhone: is it possible to enable/disable phone features programmatically?

开发者 https://www.devze.com 2023-04-03 09:34 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消