UISearchBar push时闪烁bug解决

当我们push时 searchbar 会闪烁出现(就延迟了出现)
override func viewDidLoad() { navigationController?.navigationBarHidden = true//去除UISeachbar 的白边闪烁bug(在super前调用) super.viewDidLoad() } override func viewWillAppear(animated: Bool) { navigationController?.navigationBarHidden = false super.viewWillAppear(animated) searchBar.becomeFirstResponder() }

          转载别人的

你可能感兴趣的:(UISearchBar push时闪烁bug解决)