美文网首页
2015-10-21--tableView不走代理方法

2015-10-21--tableView不走代理方法

作者: 夜千寻墨 | 来源:发表于2015-10-21 22:17 被阅读929次

在监听了键盘事件之后,键盘隐藏的方法中写了一句

[tableView reloadData];

然而,tableView的代理方法并没有执行,去主线程刷新就好了

dispatch_async(dispatch_get_main_queue(), ^{

[tableView reloadData];

});

原因就不说了,网上就有

相关文章

网友评论

      本文标题:2015-10-21--tableView不走代理方法

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