views:

99

answers:

1

I need to populate an array using data from a NSURL. How do I determine when the download from the URL has completed?

+1  A: 

You usually use NSURLConnection and then set its delegate to whatever object controls the download. When NSURLConnection finishes it sends connectionDidFinishLoading: to the delegate to signal completion.

See the URL System Programming Guide.

TechZen