My app has a navigation controller which push and pop a series of views. One of the tableViews loads .xml file from URL and it takes 4-5 seconds. If I click the back button on the navigation bar, it will only respond after the content of the table finish loading. Is there an easy way to load the content asynchronously so that the app will still respond to my gesture on the navigation bar?
p.s. I search this on the Internet and people are talking about multithreading. I don’t know a lot about threads so please be more specific.
My app has a navigation controller which push and pop a series of views.
Share
You should asynchronously reload remote data. Here you find additional information on how to load data with NSURLRequest with a delegate object. In this case your application will not stuck until the file is loaded completely (or a timeout/error happens).