Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITextFields in UIViewController #137

Closed
fwhenin opened this issue Jan 3, 2015 · 11 comments
Closed

UITextFields in UIViewController #137

fwhenin opened this issue Jan 3, 2015 · 11 comments
Assignees
Labels

Comments

@fwhenin
Copy link

fwhenin commented Jan 3, 2015

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

@hackiftekhar
Copy link
Owner

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

@hackiftekhar
Copy link
Owner

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

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

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

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

screenshot 2015-01-06 11 06 01

@hackiftekhar
Copy link
Owner

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?

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

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

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

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

@hackiftekhar
Copy link
Owner

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

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

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

@fwhenin fwhenin closed this as completed Jan 6, 2015
@hackiftekhar
Copy link
Owner

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

@fwhenin
Copy link
Author

fwhenin commented Jan 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants