Re: Resetting the TableView

2009-01-09 Thread Mohan Parthasarathy
Hi, Thanks. I did miss the animated part. It works now. But as far as my log goes, i can only see ViewDidAppear and ViewWillAppear gets called. ViewDidDisappear and ViewDidAppear never gets called. Yes, i have animated for all four of them. I can remove all my objects and reloadData in ViewWillAp

Re: Resetting the TableView

2009-01-08 Thread Davide Benini
Hi, note that viewDidLoad gets called only the first time the view is loaded (thence its use or setting the hierarchy, things that don't change). Also, note the implementation of viewWillAppear:animated: -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated];

Re: Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Hi, I tried all four entry points, they are not getting called. My ViewController is initialized using initWithNibName. First time, viewDidLoad gets called. After that, neither viewDidLoad nor the ones you mention gets called. Do i need to do anything special ? thanks mohan On Thu, Jan 8, 2009

Re: Resetting the TableView

2009-01-08 Thread Wyatt Webb
Have a look at viewWillAppear/viewDidAppear and viewWillDisappear/ viewDidDisappear on the UIViewController class You could clear out the table data on the disappear step (so you aren't holding data you don't need) or wait for the appear phase to set up your data before it's shown. These get

Re: Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Yes, but where will call this when the ViewController is being made active. The new view was filled with data previously and i need a chance to reset it. Could you explain in little bit more detail ? thanks mohan On Thu, Jan 8, 2009 at 4:04 PM, sanchezm wrote: > UITableView has a reloadData m

Re: Resetting the TableView

2009-01-08 Thread sanchezm
UITableView has a reloadData method - Miguel On Jan 8, 2009, at 3:58 PM, Mohan Parthasarathy wrote: Hi, I try to reuse UIViewControllers in didSelectatRowIndexPath. The new View has a table which is filled with data eventually. Later the view gets popped and when reusing the same ViewCont

Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Hi, I try to reuse UIViewControllers in didSelectatRowIndexPath. The new View has a table which is filled with data eventually. Later the view gets popped and when reusing the same ViewController the table shows old data. Is there a way to clear the data while still reusing ViewControllers (as rec