Question

I have a YouTube RSS feed set up to show YouTube videos in a tableview. When I load the controller though, it takes a long time to load the feed, so it appears for awhile that the app has frozen.

How can I load the view controller first, then show a loading/spinner while my app downloads the feed?

Was it helpful?

Solution

Dont load the feed on the main ui thread run it on background thread .

Take a look at ASINetworkQueue in asihttprequest http://allseeing-i.com/ASIHTTPRequest/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top