how to use beginBackgroundTaskWithExpirationHandler
- (void) doUpdate
{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[self beginBackgroundUpdateTask];
NSURLResponse * response = nil;
...
原创
2013-12-21 16:05:58 ·
123 阅读 ·
0 评论