標籤:ntc text sign 字型大小 keyboard github sid hub 文字
架構地址:https://github.com/hackiftekhar/IQKeyboardManagerAppDelegate.m檔案中 #import <IQKeyboardManager.h> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
IQKeyboardManager *manager = [IQKeyboardManagersharedManager];
// 控制整個功能是否啟用。
manager.enable = YES;
manager.overrideKeyboardAppearance = YES;
//控制點擊背景是否收合鍵盤
manager.shouldResignOnTouchOutside = YES;
// //修飾鍵盤上的工具條文字顏色是否使用者自訂。 注意這個顏色是指textfile的tintcolor
// manager.shouldToolbarUsesTextFieldTintColor = YES;
// //中間位置是否顯示佔位文字(預設是YES)
// manager.shouldShowTextFieldPlaceholder = YES;
// //設定佔位文字的字型大小
manager.placeholderFont = [UIFontboldSystemFontOfSize:18];
//控制是否顯示鍵盤上的工具條。
manager.enableAutoToolbar = YES;
//某個類中禁止使用工具條
// [[IQKeyboardManager sharedManager]disableToolbarInViewControllerClass:[UIViewController class]];
returnYES;}
iOS 鍵盤架構IQKeyboardManager使用