ios本地通知的内容如何做到定时刷新?

解决方案 »

  1.   

    类似于这样:UILocalNotification* localNotification = [[UILocalNotification alloc] init];
    localNotification.fireDate = date;
    localNotification.alertBody = content;
    localNotification.alertAction = @"Show me the item";
    localNotification.timeZone = [NSTimeZone defaultTimeZone];
    localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;
        
    [[UIApplication sharedApplication] scheduleLocalNotification:localNotification];定时通知,如果app不在后台的话,app是更新不了自己的数据的
      

  2.   

    可以用Background Fetch刷新数据吗?
      

  3.   

    可以用Background Fetch刷新数据吗?
    如果app在后台没被杀掉就可以