Reputation: 301
Im new to this lIbrary and to swift and im looking to remove this "Done" grey bar. How can I go about doing this? And other input would be of great help.
import UIKit
import Firebase
import IQKeyboardManagerSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//Configures all of Firebase
FIRApp.configure()
//Configure Key Board manager from Library (IQKEYboardManagerSwift)
IQKeyboardManager.sharedManager().enable = true
//Tab Bar Appearnece
UITabBar.appearance().barTintColor = UIColor.black
UITabBar.appearance().tintColor = UIColor.white
return true
}
Upvotes: 7
Views: 3912
Reputation: 29
Also, if you want to disable it for a specific textfield you can use
Swift 4.2+:
self.textfield.inputAccessoryView = UIView()
Objective-C:
self.textField.inputAccessoryView = [[UIView alloc] init];
More on that here
Upvotes: 0
Reputation: 408
Swift 4.2
import IQKeyboardManagerSwift
then
IQKeyboardManager.shared.enableAutoToolbar = false
Upvotes: 1
Reputation: 1897
In Latest swift:
IQKeyboardManager.shared.enableAutoToolbar = false
Upvotes: 2
Reputation: 2443
In your AppDelegate you can add:
IQKeyboardManager.sharedManager().enableAutoToolbar = false
to disable the toolbar.
Also under MARK: IQToolbar handling
you'll find properties which might help you customize the toolbar the way you want.
Don't forget to explore the IQKeyboardManager.swift class a bit ;]
Upvotes: 7