[iOS] How to animate the height of a UITableViewCell
[iOS] How to animate the height of a UITableViewCell
- Subject: [iOS] How to animate the height of a UITableViewCell
- From: WT <email@hidden>
- Date: Mon, 14 Mar 2011 14:19:25 -0300
Hello,
in one of my projects, a UITableView instance displays a number of objects whose information is gathered from the web. As it turns out each of these objects can be in one of two states, with visual differences.
In the "loading" state, only a minimal amount of information about the object (its "name" and a spinning UIActivityIndicatorView) is displayed, whereas in the "loaded" state (after the web access has been completed and information parsed) a more detailed amount of information is shown.
When the object displayed in a given UITableViewCell is in the loading state, the cell's height is just a bit larger than a UILabel's height. When the object is in its "loaded" state, the cell is quite a bit taller, to accommodate the rest of the information.
I already have all of this working just fine (including the fact that each cell's object updates its content asynchronously), but the transition from short cell to tall cell is abrupt and I would like to make it be a smooth animation.
Can someone please offer some pointers on how to accomplish that?
Thanks in advance.
WT_______________________________________________
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