This code:
[query readWithCompletion:^(NSArray *items, NSInteger totalCount, NSError *error)
{
//add the items to our local cop
self.rowitems = [items mutableCopy];
}];
is an asynchronous network call (to Azure). So, you need to reload the table after this call has completed and you have stored the results. Currently when you reload the table view the self.rowitems
array is empty.
So, call reloadData
inside the block.
[query readWithCompletion:^(NSArray *items, NSInteger totalCount, NSError *error)
{
//add the items to our local cop
self.rowitems = [items mutableCopy];
[self.TableView reloadData];
}];