views:

27

answers:

4

Hi guys,

I have a view which is a big table. This table is populated from my array of data. This is all working well. The table drawing perfect.

I pop up another small overlay view where you can set some filters. The filter does its thing and the array of data that gets changed and the array changes in size so that there is more or less items to draw in the table.

When the filter overlay view disappears there is no change to the view with the big table.

So I am guessing I need to call something to update the table or get it to redraw. Is there some kinda of delegate method for this or whats the best way to get a table to completely refresh itself?

Thanks -Code

+1  A: 

UITableView:

- (void)reloadData
Benoît
+1  A: 

to reload table data use

[self.tableView reloadData]
Gyani
+1  A: 
[tableView reloadData];

should be called after you modify the data array, to redisplay the data.

Jordan
+1  A: 

make a IBOutlet UItable *table1 and assign it to your table then use [table1 reloadData];

Ranjeet Sajwan