1.Xcode9升级后iOS11UINavigationbar自定义titleView和UIBarButtonItem异常的问题
解决方案:
自定义view 重写
intrinsicContentSize属性
2.在UINavigationBar设置titleView = searchBar时候 navigationbar会变高导致返回上级页面下移有黑边
解决方案:
给searchBar加一个父视图bgView
3.UITableView默认开启self-sizing
解决方案:设置为0关闭
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
本文解决了Xcode9升级后在iOS11中遇到的几个典型问题,包括UINavigationBar自定义标题视图异常、导航栏高度问题及UITableView自适应关闭等。
1万+

被折叠的 条评论
为什么被折叠?



