开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜