//IOS8中删除最后一个cell的时,报一个错误
[RemindersCell _setDeleteAnimationInProgress:]: message sent to deallocated instance
在重新刷新tableView的时候延迟一下
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.tableView reloadData];
});
//不会弹出本地的通知
在Appdelegate的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
if (kSYSTEM_VALUE>=8.0)
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]];