I have a tableview and an array source. When I init array in viewDidLoad method, tableview shows the data in the array. When I fill the array from a URL which is a XML data on the internet, the table gives an error. Because it first runs numberOfRowsInSection function but the array is not ready yet. How can i run table methods after initializing the array which loads data from the internet.
Share
You first return 0 from
numberOfRowsInSection, until your array is filled, when the array is filled correctly you call[tableView reloadData];