Skip to content

Known Issues

Mohd Iftekhar Qurashi edited this page Sep 23, 2019 · 6 revisions

1) Manually enable IQKeyboardManager Swift Version.

From Swift 1.2, compiler no longer allows to override class func load() method, so you need to manually enable IQKeyboardManager using below line of code in AppDelegate.

    IQKeyboardManager.sharedManager().enable = true

2) IQLayoutGuideConstraint with CocoaPods or Carthage. (Below v6.0.0)

For CoacoaPods or Carthage, IQLayoutGuideConstraints may not be visible in storyboard. For a workaround you should set it programmatically

3) Keyboard does not appear in iOS Simulator

(#62, #72, #75, #90, #100)

Known Issue

If keyboard does not appear in iOS Simulator and only toolbar is appearing over it (if enableAutoToolbar = YES), then check this setting

Xcode 6:- Goto iOS Simulator->Menu->Hardware->Keyboard->Connect Hardware Keyboard, and deselect that.

Xcode 5 and earlier:- Goto iOS Simulator->Menu->Hardware->Simulate Hardware Keyboard, and deselect that.

4) setEnable = NO doesn't disable automatic UIToolbar

(#117, #136, #147)

If you set [[IQKeyboardManager sharedManager] setEnable:NO] and still automatic toolbar appears on textFields? Probably you haven't heard about @property enableAutoToolbar.

@property enable : It enable/disable managing distance between keyboard and textField, and doesn't affect autoToolbar feature.

@property enableAutoToolbar : It enable/disable automatic creation of toolbar, please set enableAutoToolbar to NO if you don't want to add automatic toolbar.

5) Not working when pinning textfield from TopLayoutguide (Below v6.0.0)

(#124, #137, #160, #206)

Now IQKeyboardManager can work with topLayoutConstraint and bottomLayoutConstraint with a bit of manual management. Please check below Manual Management->Working with TopLayoutGuide and BottomLayoutGuide section.

6) Toolbar becomes black while popping from a view controller

(#374)

This issue happens when there is a textField active on a view controller and you navigate to another view controller without resigning currently active textField. This is an iOS issue and happens even if you don't integrate library.

image

For a workaround, you can resign currently active textField in viewWillDisappear method.

  -(void)viewWillDisappear:(BOOL)animated
  {
    [super viewWillDisappear:animated];
    [self.view endEditing:YES];
  }

7) UI Picker view not showing correctly ios 11 xcode 9 #1020

image

This issue happens in Xcode 9 iOS 11 most probably while using UIPickerView.

For a workaround, you can do the following in your view viewDidLoad

    self.pickerView.translatesAutoresizingMaskIntoConstraints = false

8) Toolbar floating at the top

image

This issue happens when the user navigates to another screen while the keyboard is still shown on current screen.

For a workaround, you can endEditing the view in your viewWillDisappear

override func viewWillDisappear(_ animated: Bool) {
   super.viewWillDisappear(animated)
   view.endEditing(true)
 }```
Clone this wiki locally