I want to use IQKeyboardManager for managing the keyboard when using a UITextField
or a UITextView
. I'm using Xcode and Swift. I don't use CocoaPods, I want to use the Source Code Method.
These are the steps I'm doing.
Opening the project and moving the
IQKeyboardManagerSwift
folder into the left sidebar of my Xcode project. Here's a screenshot of it: IQKeyboardManagerSwift folder in Xcode sidebarThen I changed the code in AppDelegate.swift like this:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { IQKeyboardManager.sharedManager().enable = true return true }
But I'm getting Use of unresolved identifier 'IQKeyboardManager'
for IQKeyboardManager.sharedManager().enable = true
.
What am I doing wrong? I exactly followed the manual and I already read it hundreds times but couldn't get it working.