美文网首页
点击cell,视图弹出延时

点击cell,视图弹出延时

作者: 陌上尘_MSC | 来源:发表于2017-09-07 14:28 被阅读0次

    在cell的代理- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath中,调用presentViewController或dismissViewControllerAnimated会出现明显延迟(概率很高),目前原因不明,解决方法如下:

    将事件加入主线程dispatch_async(dispatch_get_main_queue(), ^{

    });

    相关文章

      网友评论

          本文标题:点击cell,视图弹出延时

          本文链接:https://www.haomeiwen.com/subject/wfjijxtx.html