1

如何在本地通知上显示存储在 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;

}

谢谢你。

4

0 回答 0