Why didrecivedlocalnotification method not working?
问题 I have an application in which i have set a local notification in my class.m file which is show below:- -(IBAction)save{ NSString *str1=[NSString stringWithFormat:@"%@",txt_date.text]; NSString *str2=[NSString stringWithFormat:@" %@",txt_time.text]; str1=[str1 stringByAppendingFormat:str2]; selected_label.text= str1; [[UIApplication sharedApplication] cancelAllLocalNotifications]; NSDate *today=[NSDate date]; NSDateFormatter* formatter_current = [[[NSDateFormatter alloc] init] autorelease];