In viewDidLoad, I have this code:
ProvRec *provRec = [[ProvRec alloc]init];
provRec.status = [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement,3)
];
provRec.desc = [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement,4)
];
[listOfItems addObject:provRec];
How should I call to display these record in TableView in
cellForRowAtIndexPath:(NSIndexPath *)indexPath
The way to do it is by implementing the table view datasource protocol. The most critical methods are as follows:
There will be variation if you have more than one section in the table, or more than one tables in the view. But this is the basic idea.