Read Core data in Serial Queue for iPhone app
- by user1277209
I have an app which uses Core data and the values are fetched from a link on internet.
This runs absolutely fine when I am creating a serial queue in AppDelegate and I am not facing any problem with the same.
Now, when I am trying to re-create similar scenario in a UITableViewController and executing the same in a serial queue but when the control reaches
NSError *error;
NSArray *match = [context executeFetchRequest:fetchRequest error:&error];
execution control disappears and then this code remains in the execution till eternity.
Can anyone help me with what exactly is wrong here?
FYI, I am passing the same ManagedObjectContext to the serial queue.