Why not create one NSArray
combining both of the msg
arrays? If you are populating your second msg array from somewhere, just wait until that loading is done and then do:
NSArray *bothArray = [msg1 arrayByAddingObjectsFromArray:msg2];
You can use bothArray
as the datasource
for the TableView
, when you have only one populated msg
array, bothArray will be just the elements from msg1
, when you have populated msg2
, just use the code above and then call:
[self.tableView reloadData];