天天看点

tabletableView的cell点击 跳转页面 出现延迟的状况

首先 ,要看好写的是不是

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath ;这个方法

然后 如果是用navigation push 跳转一般不会出现延迟的问题

如果你用的 present跳转页面的话 要是出现 点击一下 可能3-4秒之后才会跳转,或者再点击一下 回跳转,那么你可以尝试一下 

 if (indexPath.row == 6) {

        dispatch_async(dispatch_get_main_queue(), ^{

            FamilyViewController *familyVC = [[FamilyViewController alloc] init];

            [self presentViewController:familyVC animated:YES completion:^{

            }];

        });

}

因为程序中可能没有默认在主线程中