この方法を試してみてください...
NSDictionary *dict=[NSDictionary dictionaryWithObject:@"YOUR OBJECT" forKey:@"YOUR KEY"];
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
localNotif.fireDate = Pre_date;
localNotif.timeZone = [NSTimeZone defaultTimeZone];
// Notification details
localNotif.alertBody = [txtRemindetText text];
// Set the action button
localNotif.alertAction = @"View";
localNotif.userInfo=dict;
localNotif.soundName = UILocalNotificationDefaultSoundName;
// Schedule the notification
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
AppDelegate.m
- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
// Handle the notificaton when the app is running
NSLog(@"Recieved Notification %@",notif);
NSLog(@"%@",notif.userInfo);
NSLog(@"%@",[notif.userInfo objectForKey:@"YOUR KEY"];
}
何か問題がありましたらお知らせください。