Note that there are some explanatory texts on larger screens.

plurals
  1. POExecute method if user cancel the UILocaNotification alert in iPhone SDK
    primarykey
    data
    text
    <p>I am new to iphone Programming . I am using localNotification in my application.It is giving alert to user and responding to Launch using didReceiveLocalNotification.But my problem is if user close the UILocalNotification in my Application i need to execute database operation .So how can i do that .Is there any approach for that one.</p> <pre><code>UILocalNotification *localNotification = [[UILocalNotification alloc] init]; NSDate* now = [NSDate date]; [localNotification setFireDate:now]; localNotification.soundName=@"Tink.wav"; [localNotification setAlertAction:@"Launch"]; [localNotification setAlertBody:@"You have entered to Your Place:"]; [localNotification setHasAction: YES]; NSDictionary *userDict = [NSDictionary dictionaryWithObject:@"obj" forKey:kRemindMeNotificationDataKey]; localNotification.userInfo = userDict; - (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif { NSLog(@"Recieved Notification"); NSString *DateString=[notif.userInfo valueForKey:kRemindMeNotificationDataKey]; if([DateString isEqualToString:@"obj"]) { [[UIApplication sharedApplication] cancelLocalNotification:notif]; } NSString *strNotif=[notif.userInfo objectForKey:kRemindMeNotificationDataKey]; if ([strNotif isEqualToString:@"obj"]) { UIAlertView *alretCheck=[[UIAlertView alloc]initWithTitle:@"notifi Testing in DidRec+" message:strNotif delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alretCheck show]; [alretCheck release]; } </code></pre> <p>Thanking you in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload