I'm getting app info from the app store using json url.
I have to parse this file before showing the info in a uitableview.
How can I do that?
I mean waiting until all json wil be parsed and stored in an nsarray.
Any help will be really appreciated.
Lets suppose you begin all the good stuff in viewDidLoad
. All you need to do is call the method where you get, parse, and store your data, then just reload the table view afterwards. Like this:
-(void)viewDidLoad {
//this is your method where you parse data and put in your array
[self parseData];
//this reloads the table view, assuming you have your data source set up
[tableView reloadData];
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.