Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/97.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使UISearchController中的scopebar在Ios swift中始终可见?_Ios_Swift_Uisearchcontroller - Fatal编程技术网

如何使UISearchController中的scopebar在Ios swift中始终可见?

如何使UISearchController中的scopebar在Ios swift中始终可见?,ios,swift,uisearchcontroller,Ios,Swift,Uisearchcontroller,我想在我的UISearchController中使用ScopeBar实现功能,在这里我不想隐藏我的范围栏。我希望它总是可见和功能。当前,它在第一次视图加载时可见,然后在应用搜索过滤器后隐藏。然后,单击搜索栏,它就会始终可见。如果您希望范围栏始终可见,您可能希望连接一个单独的UISegmentedControl,而不使用范围栏,这样就不必干扰UISearchController的默认行为 此外,还可以帮助您找到答案。您可能希望包含相关代码。

我想在我的
UISearchController
中使用
ScopeBar
实现功能,在这里我不想隐藏我的范围栏。我希望它总是可见和功能。当前,它在第一次视图加载时可见,然后在应用搜索过滤器后隐藏。然后,单击搜索栏,它就会始终可见。

如果您希望范围栏始终可见,您可能希望连接一个单独的UISegmentedControl,而不使用范围栏,这样就不必干扰UISearchController的默认行为


此外,还可以帮助您找到答案。

您可能希望包含相关代码。