Magical Record - fetch in main thread block ui, in background return nil
问题 I'm new to Magical Record, but already have seen a few questions on stackoverflow, and can't find an answer to my question. I have to find items with the predicate using this type of construction: NSArray *result = [MOSomeItems MR_findAllWithPredicate:predicate]; On the main thread result returns some value, but the UI is freezing. When using this construction, result returns nil value: dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{ NSArray *result =