开发者

How do I know when iPhone download is complete?

开发者 https://www.devze.com 2022-12-30 04:36 出处:网络
I create an array using:  NSURL *url = [NSURL URLWithString:@\"http;//www.myadress.myplist.plist\"];f

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

精彩评论

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