显示存储在plist文件中的本地通知中的数据

时间:2013-05-05 11:41:03

标签: objective-c uilocalnotification

如何在本地通知中显示存储在plist文件中的数据? 如何在ios中创建本地通知从plist文件中读取数据? 我使用下面的代码在警报视图中显示数据,但我如何根据时间更改此数据?

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

  UILocalNotification *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
  if (localNotif) {    
    UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"hhh" message:@"Data for the first day" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
    [alert show];    
  }
  return YES;

}

谢谢。

0 个答案:

没有答案