In my application I scheduled local notification with custom sound. After I cancel it from code the sound continue playing. How can I stop it?
-(void)cancelNotification{
if(localNotification){
[[UIApplication sharedApplication] cancelLocalNotification:localNotification];
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
}
}