欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

tableView 使用 reloadSections:withRowAnimation: 时,会跳动的问题

发布时间:2025/4/9 编程问答 29 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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: 时,会跳动的问题的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。