Home Making a UITableView scroll when text field is selected
Reply: 0

Making a UITableView scroll when text field is selected

user8111
1#
user8111 Published in September 19, 2018, 6:43 pm

After a lot of trial and error, I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right.

I have a UITableView which is composed of custom cells. The cells are made of 5 text fields next to each other (sort of like a grid).

When I try to scroll and edit the cells at the bottom of the UITableView, I can't manage to get my cells properly positioned above the keyboard.

I have seen many answers talking about changing view sizes,etc... but none of them has worked nicely so far.

Could anybody clarify the "right" way to do this with a concrete code example?

share|improve this question
  • 11
    This Applle documentation outlines the steps to implement a solution for this question. http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html – ChrisP Nov 15 '11 at 17:46
  • @ChrisP That link states it has not been updated for iOS 4.0 – Bae Aug 3 '12 at 11:35
  • This code can be helpful: gist.github.com/TimMedcalf/9505416 – landonandrey Dec 14 '16 at 10:46
  • Follow below Url, it will work:stackoverflow.com/questions/48922266/… – Venkatesh G Feb 22 at 9:25

46 Answers 46

active oldest votes
1 2 next
up vote 3 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.53515 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO