Xcode IQKeyboardManager和使用Swift 3的CustomTextField(SkyFloatingLabelTextField)

Xcode IQKeyboardManager和使用Swift 3的CustomTextField(SkyFloatingLabelTextField),xcode,swift3,xcode7,iqkeyboardmanager,skyfloatinglabeltextfield,Xcode,Swift3,Xcode7,Iqkeyboardmanager,Skyfloatinglabeltextfield,我使用的是SkyFloatingLabelTextField,这是一个自定义UITextField。在将IQKeyboardManager添加到我的pod文件(pod安装)中后,预计它将自动处理键盘问题 有没有线索可以将IQKeyboardManager与customTextfield集成 雨燕3.0+解决方案 在AppDelegate中: // Enable IQKeyboardManager for customization IQKeyboardManager.share

我使用的是
SkyFloatingLabelTextField
,这是一个自定义
UITextField
。在将
IQKeyboardManager
添加到我的pod文件(
pod安装
)中后,预计它将自动处理键盘问题


有没有线索可以将
IQKeyboardManager
customTextfield
集成

雨燕3.0+解决方案

在AppDelegate中:

 // Enable IQKeyboardManager for customization
        IQKeyboardManager.sharedManager().enable = true
UIViewController中的

class A : UIViewController

viewDidLoad() {
        customizeKeyboard()
    }


func customizeKeyboard(){

    IQKeyboardManager.sharedManager().shouldResignOnTouchOutside = true
    IQKeyboardManager.sharedManager().shouldShowTextFieldPlaceholder = false
    IQKeyboardManager.sharedManager().toolbarDoneBarButtonItemText = ""
    IQKeyboardManager.sharedManager().shouldHidePreviousNext = true
    IQKeyboardManager.sharedManager().keyboardDistanceFromTextField = 150

    emailTextField.delegate = self
    passwordTextField.delegate = self

    // to remove the autocorrect on top of keyboard
    emailTextField.autocorrectionType = .no
    emailTextField.keyboardType = .emailAddress

    // to remove the IQManager view on top of Keyboard
    let emptyUIView = UIView()
    emailTextField.inputAccessoryView = emptyUIView
    passwordTextField.inputAccessoryView = emptyUIView
    forgotEmailTextField.inputAccessoryView = emptyUIView
    }
}

你为那个VC启用了iqkeyboard管理器了吗?我以前没有使用过
SkyFloatingLabelTextField
,但是你启用了
IQKeyboardManager
了吗?已经启用了
IQKeyboardManage
r,我将
两个textfield
放在uiview中,iPad横向,单击
第一个文本字段
,键盘将覆盖uitextfield。对于自定义uitextfield,有什么方法可以执行吗?