Scrolling while resizing a UITableView with UITextFields
Scrolling while resizing a UITableView with UITextFields
- Subject: Scrolling while resizing a UITableView with UITextFields
- From: Luther Baker <email@hidden>
- Date: Sat, 21 Mar 2015 12:56:38 -0500
Hi, I have a question about parallel scrolling (I think) in iOS.
Let's say I've got a UITableView with > 20 or so rows where each cell's
contentView essentially contains a simple UITextField. Assume I am not
using a UITableViewController for the time being (I've actually got 5 of
these tableviews in a scrollview - setup like columns such that you can
page back and forth between them).
If I scroll to the bottom-most row of a particular tableview and tap on the
textfield, the keyboard comes up (Great!). I've setup keyboard handlers and
I'm resizing the tableview accordingly (Great!) ... and if I give it a
second or so, the row with the textfield I tapped on eventually scrolls up
and into view above the keyboard (Really Great!).
But ... I would like a slightly different animation. Instead of the
tableview shrinking such that the top rows stay put and the bottom rows
disappear ... with the bottom tapped textfield eventually scrolling up and
into view above the keyboard after the resizing is complete, *I want the
bottom set of rows to actually animate up* as I'm shrinking the tableview.
IE: the row that was tapped should never go out of view. I want the rows at
the top of the tableview to disappear as the tableview shrinks up.
Literally ... up.
Thoughts on how to approach this? Should I animate a contentOffset scroll
simultaneously?
Thanks,
-Luther
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden