简体   繁体   中英

How to make a scopebar in UISearchController always visible in Ios swift?

I want to implement functionality in my UISearchController , with ScopeBar , where I don't want my scope bar to be hidden. I want it to always be visible and functional. Currently, it is visible on the first view load and then hides after search filter is applied. Then, going forward, it always becomes visible on a click of the search bar.

If you want the Scope Bar to always be visible, you may want to hook up a separate UISegmentedControl and not use the Scope Bar at all so you do not have to mess around with UISearchController's default behavior.

Also, this question may help guide you to an answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM