Frage

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 ?

War es hilfreich?

Lösung

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

    [[UIApplication sharedApplication] cancelAllLocalNotifications];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top