In the OS X book, when wanting to add a row to a tableview, we were taught to add it to the datasource’s array, and then send -reloadData: to the tableview. In the iOS book, in this chapter, we are taught to insert a row in the actual tableview by sending -insertRowsAtIndexPaths:, and also first add the data to the datasource’s array. Why the different approaches?
I did read the iOS doc, and it does warn no to use -reloadData: when inserting (or deleting) rows in a tableview; however, it does not go on to say why.
Just wondering, for my own edification. Thanks.