Never use [NSData dataWithContentsOfURL:] in a real app. It makes a synchronous network connection and your app will be killed by the OS if that doesn't finish quickly enough. Stick to NSURLConnectionDataDelegate or use [NSURLConnection sendAsynchronousRequest:queue:completionHandler:.
|
I ended up using [NSURLConnection sendAsynchronousRequest:queue:completionHandler:]. I've discovered multi-threading now. For the record, NSURLConnection does
link:http://stackoverflow.com/questions/9584663/datawithcontentsofurl-and-http-302-redirects |