tableView 使用 reloadSections:withRowAnimation: 时,会跳动的问题
生活随笔
收集整理的这篇文章主要介绍了
tableView 使用 reloadSections:withRowAnimation: 时,会跳动的问题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
iOS11默认开启Self-Sizing 如果你没用到预估高度 那么你尝试在Appdelegate.m中的didFinishLaunchingWithOptions方法中,加上如下代码,看看是否有效
if (@available(iOS 11.0, *)) {UITableView.appearance.estimatedRowHeight = 0;UITableView.appearance.estimatedSectionFooterHeight = 0;UITableView.appearance.estimatedSectionHeaderHeight = 0;}
转载于:https://www.cnblogs.com/somebodywx/p/9025553.html
《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读总结
以上是生活随笔为你收集整理的tableView 使用 reloadSections:withRowAnimation: 时,会跳动的问题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: jQuery实现点击开关图片切换
- 下一篇: 卸载angular版本