-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tableview的style为UITableViewStyleGrouped时 footer多出空白 #1572
Labels
Comments
解决了吗? |
未解决啊,很多列表都必用group,后面看看吧 |
这里我以 let footer = MJRefreshAutoNormalFooter {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { [weak self] in
guard let self = self else { return }
self.tableView.mj_footer?.endRefreshing()
}
}.link(to: tableView)
// 着重看这里. 让 Footer 上移 40
footer.ignoredScrollViewContentInsetBottom = -40
// 去除 Footer 引入 TableView 后导致的 contentInset 变动,
// 因为这里是 Group 形式, Group 默认就会在头尾留空, 从而导致了界面异常的出现
tableView.contentInset = .zero |
我并未隐藏footer 加载更多的时候用的是菊花的样式 直接继承了MJRefreshAutoNormalFooter , 那collectionView的footer也存在这样的问题,也是这个导致的吗 |
估计跟新系统上的一些状态栏高度有关系,我发现footer和最后一个cell的距离是20的高度,但是我在iOS11.3系统上并未发现不正确 |
这样试试
|
这个一直存在,但不太行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
把tableview初始化的style 改成UITableViewStyleGrouped类型,上拉刷新的footer和最后一个cell多了一段空白距离
The text was updated successfully, but these errors were encountered: