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; }
posted on 2018-05-11 16:56 Somebodywx 阅读(850) 评论(0) 编辑 收藏 举报