hi all !
i create an array using :
NSURL *url = [NSURL URLWithString:@"http;//www.myadress.myplist.plist"];f
NSArray *tmp = [NSArray arrayWithContentsOfURL:url];
how do i know when the download is complete ?
thanks to all !
hi all !
i create an array using :
NSURL *url = [NSURL URLWithString:@"http;//www.myadress.myplist.plist"];f
NSArray *tmp = [NSArray arrayWithContentsOfURL:url];
how do i know when the download is complete ?
thanks to all !
-[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).