In my viewController for tableview cell want to focus the next textfield or textview while click on nex in keyboard iOS swift

 Problem:

I'm having multiple number of cells with textfield and textview.While user click on next on keyboard then must be focused on next available textfield or textview.How do i achieve that?

Solution:

    func textFieldShouldReturn(_ textField: UITextField) -> Bool {

        IQKeyboardManager.shared.goNext()

}


Use the above method to achieve that.Alos you must have to set the delegate to the textfiled.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift