Closed MoLice closed 6 years ago
iPhone X 模拟器
[iOS 11.0, iOS 11.1)
9.0
2.0.0
示例代码:
UISearchController *searchController = xxx; searchController.searchBar.barTintColor = Xxx; tableView.tableHeaderView = searchController.searchBar;
然后点击搜索框,进入搜索模式,搜索框飞到顶部,此时在 iPhone X 下会看到搜索框背景并没有撑满整个状态栏。
该问题在 iOS 11.1 已经被系统修复,因此只需要覆盖 11.0 的版本即可。
在 iOS 11 下,以 tableHeaderView 的方式使用 searchBar 的话,进入/退出搜索状态,searchBar 都会有抖动。 这一点与是否 iPhone X 无关。
横屏模式下进入搜索状态,searchBar 内的输入框偏上,在所有设备、所有 iOS 11.x 版本里均会。
2.1.0 已兼容各种问题,请查看UISearchBar+QMUI。
UISearchBar+QMUI
请填写运行环境
iPhone X 模拟器
[iOS 11.0, iOS 11.1)
9.0
2.0.0
请描述具体问题
示例代码:
然后点击搜索框,进入搜索模式,搜索框飞到顶部,此时在 iPhone X 下会看到搜索框背景并没有撑满整个状态栏。
该问题在 iOS 11.1 已经被系统修复,因此只需要覆盖 11.0 的版本即可。