Loading data after one second in uitableview. Any alternate way to eliminate this delay
问题 NSURL *url=[NSURL URLWithString:string]; dispatch_queue_t backgroundQueue = dispatch_queue_create("com.example.workQueue", DISPATCH_QUEUE_SERIAL); dispatch_async(backgroundQueue, ^{ NSData *data=[NSData dataWithContentsOfURL:url]; NSDictionary *json=[NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil]; NSLog(@"%@",json); marray=[NSMutableArray array]; for (NSDictionary *dict in json) { } dispatch_async(dispatch_get_main_queue(), ^{ [self.tableView reloadData]; }); });