Re: Question about UITableView and loading some XML
Thanks all :) Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Wed, Sep 22, 2010 at 12:48 PM, Luke Hiesterman wrote: > [tableView reloadData]; > > Luke > > Sent from my iPhone. > > On Sep 22, 2010, at 8:20 AM, "Eric E. Dolecki" wrote: > > > I have a view that contains a UITableView. I am loading an XML file and > > parsing it, getting a list of names. I populate a NSMutableArray with > those. > > I want to stuff them into the tableview, however the table's delegate > > methods fire before the XML is done, so if I do a [array count] it will > be 0 > > until the array is filled. > > > > Is there a way to "reset" the tableView so it will call the delegates > again? > > > > > > Google Voice: (508) 656-0622 > > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > > http://blog.ericd.net > > ___ > > > > 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: > > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > > > This email sent to luket...@apple.com > ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about UITableView and loading some XML
[tableView reloadData]; Luke Sent from my iPhone. On Sep 22, 2010, at 8:20 AM, "Eric E. Dolecki" wrote: > I have a view that contains a UITableView. I am loading an XML file and > parsing it, getting a list of names. I populate a NSMutableArray with those. > I want to stuff them into the tableview, however the table's delegate > methods fire before the XML is done, so if I do a [array count] it will be 0 > until the array is filled. > > Is there a way to "reset" the tableView so it will call the delegates again? > > > Google Voice: (508) 656-0622 > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > http://blog.ericd.net > ___ > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > This email sent to luket...@apple.com ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about UITableView and loading some XML
[myTableView reloadData]; will reload the entire (visible) table. If you want the new data to be inserted in an animated fashion, you can use the -insertRowsAtIndexPaths:withRowAnimation: method (and similar variants). Cheers, Dave On Sep 22, 2010, at 8:20 AM, Eric E. Dolecki wrote: > Is there a way to "reset" the tableView so it will call the delegates again? smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Question about UITableView and loading some XML
I have a view that contains a UITableView. I am loading an XML file and parsing it, getting a list of names. I populate a NSMutableArray with those. I want to stuff them into the tableview, however the table's delegate methods fire before the XML is done, so if I do a [array count] it will be 0 until the array is filled. Is there a way to "reset" the tableView so it will call the delegates again? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com