Dispatch Queue and global NSMutableDictionary - Objective C
问题 I'm trying to use a global NSMutableDictionary from a dispatch queue. However, the items keep coming back NULL. What I'm trying to do is access an external json file with a dispatch_queue, then populate a UITableView with this info. Here's what I have vc.h: @interface viewcontroller { NSMutableDictionary *jsonArray; } vc.m: #define kBgQueue dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) //1 #define jsonTest [NSURL URLWithString:@"http://www.sometest.com/test.php"] -(void