Reputation: 15639
hello I have stored some data in sqlite3 database, and i am retrieving it, and saving to an array but now I want to show the data as the application loads in the UITable, how can I do it ???
Upvotes: 0
Views: 443
Reputation: 5432
Once you have the data retrieved in an array, you can use reloadData method to reload the data in the your table view. For ex.
[yourTableView reloadData];
Make sure, the numberOfRowsInSection..
return the array count, like,
[arrData count];
In your cellForRowAtIndexPath..
delegate method, display the data from the array..like
cell.textLabel.text = [arrData objectAtIndex:indexpath.row];
I hope, it helps
Upvotes: 1