本文主要是介绍IQKeyboardManager 使用方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {// Override point for customization after application launch.[self customKeyManager];return YES;
}#pragma mark - 设置键盘- (void)customKeyManager{IQKeyboardManager *manager = [IQKeyboardManager sharedManager];manager.enable = YES;manager.shouldResignOnTouchOutside = YES;manager.shouldToolbarUsesTextFieldTintColor = YES;manager.enableAutoToolbar = YES;manager.shouldShowTextFieldPlaceholder = NO;}
借鉴了老大代码 留着以后自己用 哈哈哈哈
这篇关于IQKeyboardManager 使用方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!