UIImageView *test=[[UIImageView alloc]initWithFrame:CGRectMake(10, 0, 20, 20)];
test.image=[UIImage imageNamed:@"icon57.png"];
[self.window addSubview:test];
test.window.windowLevel=UIWindowLevelStatusBar;
UIApplication *app = [UIApplication sharedApplication];
__block UIBackgroundTaskIdentifier bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
dispatch_async(dispatch_get_main_queue(), ^{
if (bgTask != UIBackgroundTaskInvalid) {
......
阅读全文