在viewWillAppear里写: self.navigationItem.hidesSearchBarWhenScrolling = false;
在viewDidAppear里写: self.navigationItem.hidesSearchBarWhenScrolling = true;
在viewWillAppear里写: self.navigationItem.hidesSearchBarWhenScrolling = false;
在viewDidAppear里写: self.navigationItem.hidesSearchBarWhenScrolling = true;
本文标题:不滚动就显示navigation的searchBar
本文链接:https://www.haomeiwen.com/subject/bsnzxctx.html
网友评论