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

How to scroll tableView to it's initial state #34

Closed
osrl opened this issue Mar 23, 2014 · 6 comments
Closed

How to scroll tableView to it's initial state #34

osrl opened this issue Mar 23, 2014 · 6 comments
Assignees

Comments

@osrl
Copy link

osrl commented Mar 23, 2014

I have tableView with 4 custom cells(with textField) and it's height is 44x4. Keyboard moves the textField up. But when the keyboard is hidden, tableView doesn't scroll up.

Does IQKeyboardManager handle this situation or should i use UIKeyboardWillHideNotification

Here is a screenshot:
screen shot 2014-03-23 at 23 29 00

@hackiftekhar
Copy link
Owner

Are you using lastest version of IQKeyboardManager? According to me I have already managed that, it should work perfectly. If not, then can you share me sample code? Please see 'UIScrollView/UITableView example' in demo project.

Waiting for your reply.

Thanks
Iftekhar

@hackiftekhar
Copy link
Owner

I mean in 'UIScrollViewUITableView example' section in my demo project.

@osrl
Copy link
Author

osrl commented Mar 24, 2014

Well, actually it's not working in the demo. But using UIKeyboardWillHideNotification worked for me.
screen shot 2014-03-24 at 11 21 35

@hackiftekhar
Copy link
Owner

Somehow fixed it temporarily. Please see latest commit and code changes inside keyboardWillHide: method.

Thanks
Iftekhar

@osrl
Copy link
Author

osrl commented Mar 24, 2014

It works on the demo project but not on my project. I'm using cocoapods. Is it related? There is no podspec in this project.

@osrl
Copy link
Author

osrl commented Mar 24, 2014

No, my bad. It works. Thanks

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

No branches or pull requests

2 participants