PushNotification
文章平均质量分 63
chuanyituoku
这个作者很懒,什么都没留下…
展开
-
Presenting a local notification immediately while running in the background
- (void)applicationDidEnterBackground:(UIApplication *)application { NSLog(@"Application entered background state."); // bgTask is a property of the class NSAssert(self.bgTask == UII原创 2014-08-30 19:40:32 · 753 阅读 · 0 评论 -
Creating, configuring, and scheduling a local notification
- (void)scheduleNotificationWithItem:(ToDoItem *)item interval:(int)minutesBefore { NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar]; NSDateComponents *dateComps = [[NSDateComp原创 2014-08-30 19:34:09 · 740 阅读 · 0 评论