• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Resizing UITableView will keeping content scrolled to bottom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizing UITableView will keeping content scrolled to bottom


  • Subject: Resizing UITableView will keeping content scrolled to bottom
  • From: Rick Mann <email@hidden>
  • Date: Mon, 16 Apr 2012 16:09:29 -0700

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 (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

  • Follow-Ups:
    • Re: Resizing UITableView will keeping content scrolled to bottom
      • From: Luke Hiesterman <email@hidden>
  • Prev by Date: Re: Xcode warns about missing protocol definition, even though @protocol is used
  • Next by Date: Re: activating Delete menu item through binding
  • Previous by thread: Re: Cocoa re-enables menu item after I disable it
  • Next by thread: Re: Resizing UITableView will keeping content scrolled to bottom
  • Index(es):
    • Date
    • Thread