0

我想添加一个功能,我们在导航栏上有一个搜索按钮,单击该按钮时,搜索栏应该代替导航栏。

4

1 回答 1

0

You can add the SearchBar as the subview of the NavigationBar when user clicks the SearchButton on the navigatioBar & brings the serachBar to front.

[navBar addSubview:searchBar]; [navBar bringSubviewToFront:searchBar];

于 2013-10-31T11:38:50.817 回答