I read tutorial here
http://adeem.me/blog/2009/05/19/iphone-programming-tutorial-part-1-uitableview-using-nsarray/
which shows how to fill a UITableView at initialization. I can’t find tut to do so after initialization (for example when User has clicked on a button).
Any suggestion ?
You would just update the data source and reload the table view.
Following that tutorial, you would do it like so:
This will tell the
UITableViewto reload the data source and adjust the amount of sections, rows etc.Note that you might prefer to use a
NSMutableArrayinstead.[self.mutableArrayData addObject:@"iMac"];