Hi. I'm implementing a messaging UI similar to the one found in Messages. In 
that app, when you focus on the input field, the keyboard pops up, and the 
input field scoots up as the keyboard comes up.

The conversation history area resizes to make room, but if you're scrolled to 
the bottom, the bottom of the content remains visible; it scoots up with the 
bottom edge of the conversation frame.

I tried implementing this by animating the content offset by the same amount as 
the frame is resized, but it doesn't work quite right. It seems that my 
UITableView's frame is not being animated to its new position, but rather it 
snaps up there. Note that it resizes as a consequence of the frame bindings, 
and I'm actually resizing the containing view.

Questions:

1) Is there an easier way to pin the contents of a table view to be scrolled to 
the bottom during a resize animation than to also animate the contentOffset?

2) When animating a frame change, are subframe re-sizes also animated? It looks 
like they're partly immediately update, then animating.

-- 
Rick


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to