-
-
Save pec1985/48a765c50f64aa7c47ed to your computer and use it in GitHub Desktop.
Appcelerator cancelLocalNotifications fixed!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// line #170 | |
-(void)cancelLocalNotification:(id)args | |
{ | |
ENSURE_SINGLE_ARG(args,NSObject); | |
ENSURE_UI_THREAD(cancelLocalNotification,args); | |
NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications]; | |
if (notifications!=nil) | |
{ | |
for (UILocalNotification *notification in notifications) | |
{ | |
if([[[notification userInfo] objectForKey:@"id"] isEqual:args]) | |
{ | |
[[UIApplication sharedApplication] cancelLocalNotification:notification]; | |
return; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment