Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/121.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.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
Ios UISearchController UISegmentedControl取消选择所有项目_Ios_Objective C_Uisegmentedcontrol_Uisearchcontroller - Fatal编程技术网

Ios UISearchController UISegmentedControl取消选择所有项目

Ios UISearchController UISegmentedControl取消选择所有项目,ios,objective-c,uisegmentedcontrol,uisearchcontroller,Ios,Objective C,Uisegmentedcontrol,Uisearchcontroller,是否有方法取消选择UISearchController中UISegmentedControl的所有项目?如果我点击一个已经选择的片段,我需要取消选择一些片段。因此,我将启用搜索的所有选项。只有我现在可以做的-创建段“全部”,但我已经有3个段了。我只是没有空间容纳更多的片段(如果我添加新片段,它们都会消失)。谢谢 UPD 仍然找不到访问UISearchController的UISegmentedControl的方法。要取消选择,请使用此行[setSelectedSegmentIndex:UISeg

是否有方法取消选择
UISearchController
UISegmentedControl
的所有项目?如果我点击一个已经选择的片段,我需要取消选择一些片段。因此,我将启用搜索的所有选项。只有我现在可以做的-创建段“全部”,但我已经有3个段了。我只是没有空间容纳更多的片段(如果我添加新片段,它们都会消失)。谢谢

UPD


仍然找不到访问
UISearchController的
UISegmentedControl
的方法。要取消选择,请使用此行[setSelectedSegmentIndex:UISegmentedControlNoSegment]@rameshmut问题是如何获取对UISegmentedControl的引用?