ios6中文键盘按右上角锁屏后crash解决办法

来源:互联网 发布:手机电脑连接软件 编辑:程序博客网 时间:2024/05/01 01:32

- (void)applicationDidEnterBackground:(UIApplication *)application{    // Acquired additional time    UIDevice *device = [UIDevice currentDevice];    BOOL backgroundSupported = NO;    if ([device respondsToSelector:@selector(isMultitaskingSupported)]) {        backgroundSupported = device.multitaskingSupported;    }    if (backgroundSupported) {        backgroundTask = [application beginBackgroundTaskWithExpirationHandler:^{            [application endBackgroundTask:backgroundTask];            backgroundTask = UIBackgroundTaskInvalid;        }];    }    // Hide keyboard     [self.textField resignFirstResponder];}


http://stackoverflow.com/questions/12730660/application-crash-on-lock-when-japanese-keyboard-used

原创粉丝点击