views:

158

answers:

1

I am new to iphone development.I have created a table view in a view controller. I want to reload the table view so that i can display the contents which are parsed previously in delegates. More over reloadData does only reload the cells. It doesn't take care of actually updating the underlying datasource.

E.g. if i read data from an array in tableView:cellForRowAtIndexPath:, I have to change the array values befor calling reloadData.

How can i achieve this. Please help me out.Thanks.

A: 

It sounds like you need a manager class (or something) to encapsulate the process of requesting, downloading, parsing the data and updating your model objects.

You can use delegation to tell the view controller to reload after you've done all of the above.

Jasarien
Thanks for the nice idea.
Warrior