目前找到一个办法:
- (void)evTouchUpInside:(id)sender {
    
    NSLog(@"before dispathc_async");
    
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{        NSLog(@"1 dispathc_async");
        
        // 耗时的操作
        [NSThread sleepForTimeInterval:3];
        
        dispatch_async(dispatch_get_main_queue(), ^{
            // 更新界面
            NSLog(@"2 dispathc_async");
        });
    });
    
    NSLog(@"after dispathc_async");
}
希望能抛砖引玉,, 不知道各位还有什么更好的办法

解决方案 »

  1.   

    我想到的一个方法是用通知,然后用dispatch_after
      

  2.   

    ⊙﹏⊙b汗假设有个UITableView, 有若干个UITableViewCell, 每个Cell上面都有一个Button, 单击Cell上面的Button,UITableView可以删除这个Cell.....
      

  3.   

    ⊙﹏⊙b汗假设有个UITableView, 有若干个UITableViewCell, 每个Cell上面都有一个Button, 单击Cell上面的Button,UITableView可以删除这个Cell.....
    那你应该把Button的事件让TableView的Controller来处理