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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UITextFields in UIViewController

fwhenin opened this issue · comments

I have a login screen of just a UIViewController with 3 UITextfields in them...does IQKeyboardManager support getting the textboxes out of the way then, because that's not happening. Any ideas what I need to do.

Things you should know:
1- I have Constraints between the textboxes, but not constraints to the superView.
2- I tried adding those fields in a UIScrollView and that still doesn't work

May be you are pinning your textField constraint to topLayout guide, if NO, then could you please share demo code?

Any updates or you fixed this issue by fixing your autolayout configuration?

it hasn't been fixed yet, but I can't really share code since it's a xib file. I removed all constraints except the width of one text field...SHOULD the page be scrolled automatically? maybe I'm expecting this code to do something it doesn't. or maybe I do need a UIScrollView

I think you are going right, Library must move textField out of the way, but still I need a demo project to debug it. Could you please create a separate demo project to demonstrate the issue and share with me?

so I just made a demo project...and it works...something with my code...I have no idea what it could be

I'm trying to figure out what other pods are conflicting with this...same issue with the UIPickerView not having the accessory bar...I'm using XLForm, but the accessory bar shows up in their textfields normally...and they use a UIViewController

Try adding pod one by one in demo project. seems some issue with your project not in the library, because demo is working fine.

HOLY CRAP.....yeah, I'm an idiot, I was inheriting from UITableViewController for some reason...once I changed it to UIViewController, everything worked. thank you for your help man. Sorry about that

Thanks bro, I would love to help you when you are in trouble.

side-note, XLForm conflicts when it comes to a Selector View...the toolbar doesn't show up there...looking into a fix for that