1. 强制使用系统键盘
- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier{
if ([extensionPointIdentifier isEqualToString:@"com.apple.keyboard-service"]) {
return NO;
}
return YES;
}
2.是否锁屏
禁止锁屏:[UIApplication sharedApplication].idleTimerDisabled = YES;
允许锁屏:[UIApplication sharedApplication].idleTimerDisabled = YES;
3.关闭iOS7后手势返回
self.navigationController.interactivePopGestureRecognizer.enabled = NO;