Hello All, I have a Navigation View with a Table View, when a row is clicked, the row indexPath is passed to the next view.
in the Details view viewDidLoad, i am fetching data from Core Data. i use the fetching from the application delegate
[appDelegate loadItem:i];
As you can see i am passing one integer only which carries the row number.
the question is: How can i make this call process in another thread.(in the background) I need this because sometimes the result of the fetch is too big, so the processing takes 3 seconds delaying pushing the Details View.
I need to display an Activity Indicator for the three seconds, so i need to put the Fetch in another thread to be able to use the UI for the indicator while the fetch is being processed.
I want the simplest way as i am a newbie. Posting some codes will be great. or links :)