摘要: 一、首先。在Info.plist里面添加Key:Required background modesValue:App registers for location updates- (void)scheduledTimer{ UIApplication* app = [UIApplication sharedApplication]; self.backgroundTask = [app beginBackgroundTaskWithExpirationHandler:^{ NSLog(@"applicationD in Background"); }];... 阅读全文
posted @ 2014-04-01 09:44 菜鸟程序猿 阅读(210) 评论(0) 推荐(0)