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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With