iOS 5 Wait for delegate to finish before populating a table?
问题 I am working on an iOS 5 app. I have a view controller that needs to display data as soon as its opened. The desired order of functionality is: Call a web service Wait for the reply from the web service (a delegate) Fill a data array Use the array to populate a list view Show the list view I have all of the components in place but after the web service call is made, the program doesn't wait for a reply (asynchronous call) and instead fills the list view with blanks since the data array is not