开发者

How do I know when iPhone download is complete?

I create an array using: 

NSURL *url = [NSURL URLWithString:@"http;//www.myadress.myplist.plist"];f

NSArray *tmp = [NSArray arrayWithContentsOfURL:url];
开发者_StackOverflow

How do I know when the download is complete? 


-[NSArray arrayWithContentsOfURL] is a synchronous method--the thread will block until the download is complete. (For this reason, it's usually a bad idea to use it on the main thread--either use it on a separate thread or use the asynchronous NSURLConnection methods instead).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜