- (void)applicationDidEnterBackground:(UIApplication *)application {
UIDevice * device = [UIDevice currentDevice];
BOOL backgroundSupported = NO;
if ([device respondsToSelector:@selector(isMultitaskingSupported)]) {
backgroundSupported = device.multitaskingSupported;
}
__block UIBackgroundTaskIdentifier backgroundTask;
if (backgroundSupported) {
backgroundTask = [application beginBackgroundTaskWithExpirationHandler:^{
[application endBackgroundTask:backgroundTask];
backgroundTask = UIBackgroundTaskInvalid;
}];
}
}
IOS 6.0 下 在输入中文时 按下锁屏键 导致的闪退问题
最新推荐文章于 2024-08-03 06:35:50 发布
