Re: UITableView updating problem
Re: UITableView updating problem
- Subject: Re: UITableView updating problem
- From: glenn andreas <email@hidden>
- Date: Thu, 13 Aug 2009 09:17:13 -0500
On Aug 13, 2009, at 8:44 AM, Brian Slick wrote:
On Aug 13, 2009, at 8:31 AM, glenn andreas wrote:
You're using a sledge hammer (reloadData) when you need a small
screwdriver.
From UITableView.h:
- (void)reloadData; // reloads everything from
scratch. redisplays visible rows. --> because we only keep info
about visible rows, this is cheap.<-- will adjust offset if table
shrinks
Watch this year's WWDC session on UITableViews - that's where the
"sledgehammer" comment actually comes from.
reloadData is cheap, but it is still a sledgehammer approach (since it
tears everything down and rebuilds everything). Tweaking a setting of
an existing view is far more surgical.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
_______________________________________________
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