2015-04-14 38 views
0

我在naviguatbar下有1px的一行,但是当我使用搜索栏的取消按钮时它消失了。UINaviguationBar底部阴影消失

前: enter image description here

我按取消...

编辑取消代码:

func searchBarCancelButtonClicked(searchBar: UISearchBar) { 
     if(!searchController.searchBar.hidden){ 
      self.searchController.searchBar.text="" 
      self.searchController.searchBar.hidden=true 
     } 
    } 

后: enter image description here

我怎样才能解决呢?任何建议将有帮助

+0

发布您在触摸取消按钮时执行的代码。 – marius

+0

我编辑了我的问题,我只隐藏searchBar。 – Forever

+0

属性导航栏的值前后相等,所以我不明白为什么这个发线消失:( – Forever

回答

1

iOS 8.3修复了这个问题。我不知道为什么。