hackiftekhar / IQKeyboardManager

Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.
MIT License
16.45k stars 2.41k forks source link

Not Working with SearchBar #680

Closed leminhtuan2015 closed 7 years ago

leminhtuan2015 commented 7 years ago

I installed with pod ok, And already follow your introduction

@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

  IQKeyboardManager.sharedManager().enable = true

  return true
}

}

I got no error but nothing happend when I focus on searchbar .

I am using Swift 3, Xcode 8, Please take a look for this issue, Thank you sir!

MHX792 commented 7 years ago

Same here. Any solutions?

hackiftekhar commented 7 years ago

Could you guys let me know what exactly isn't working with UISearchBar?

lcccch commented 7 years ago

The toolbar is not shown when focus on UISearchBar. Swift 3, Xcode 8.

hackiftekhar commented 7 years ago

Toolbar in searchBar is explicitly disabled. Because in most of the searchBar the boyyom search button enable/disable to dismiss keyboard.

MHX792 commented 7 years ago

Any way to manually enable it? When you have life filtering the search button is kind of useless and a done button would be more user friendly.

hackiftekhar commented 7 years ago

You could probably try to add your own inputAccessoryView for searchBar?

NirajCapermint commented 5 years ago

Any solution for this ? @hackiftekhar