iqkeyboardmanager

How to hide Toolbar in IQKeyboardManager iOS Swift 3

不羁岁月 提交于 2019-12-07 04:49:42
问题 I'm using the IQKeyboardManger library to scroll text fields when started typing using the keyboard, but I don't want to display the default toolbar from their library. Below is the code I've used. override func viewDidLoad() { super.viewDidLoad() self.chatTextField.inputAccessoryView = [[UIView alloc] init]; //This will remove toolbar which have done button. self.chatTextField.keyboardDistanceFromTextField = 8; //This will modify default distance between textField and keyboard. For exact

IQKeyboardManager not disabling

时光怂恿深爱的人放手 提交于 2019-12-05 22:25:21
Trying to disable IQKeyboardManager for a particular ViewController or for the whole app, it's not working. My AppDelegate code: [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO]; [[IQKeyboardManager sharedManager] setEnable:NO]; [[IQKeyboardManager sharedManager] disableToolbarInViewControllerClass:[TCChatViewController class]]; [[IQKeyboardManager sharedManager] disableInViewControllerClass:[TCChatViewController class]]; Also trying to disable in viewWillAppear: : [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO]; [[IQKeyboardManager sharedManager] setEnable:NO]; Disable

AutoLayout issue Swift 3.0

你。 提交于 2019-12-01 00:35:24
I have already Autolayout this screenshot using.I want when i click textView ,textView will always just above Keyboard and also i am using custom NavigationBar .I already used IQKeyBoardManagerSwift It is working but my NavigationBar also moves up I want my NavigationBar to be stick at top if i click textView.Any Solutions to this. thanks in advance Swift 3.0 :- Drag your UITextView in a contentView(UIView) , Create IBOutlet of bottom constraint of contentView i.e bottomConstraint . After use the below code as mentioned and custom NavigationBar will also stick at top only textView will be just

AutoLayout issue Swift 3.0

耗尽温柔 提交于 2019-11-30 19:49:06
问题 I have already Autolayout this screenshot using.I want when i click textView ,textView will always just above Keyboard and also i am using custom NavigationBar .I already used IQKeyBoardManagerSwift It is working but my NavigationBar also moves up I want my NavigationBar to be stick at top if i click textView.Any Solutions to this. thanks in advance 回答1: Swift 3.0 :- Drag your UITextView in a contentView(UIView) , Create IBOutlet of bottom constraint of contentView i.e bottomConstraint .