I set an alarm through my app in objective c for a particular time. Is it possible to disable that alarm programmatically from the app ?

有帮助吗?

解决方案

if you are setting alarm through local notification, then you can cancel it by below code

    [[UIApplication sharedApplication] cancelAllLocalNotifications];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top