Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.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/0/performance/5.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中有更多值时快速选择选择器值_Ios_Performance_Picker - Fatal编程技术网

在iOS中有更多值时快速选择选择器值

在iOS中有更多值时快速选择选择器值,ios,performance,picker,Ios,Performance,Picker,我正在使用显示列表并从列表中选择任何一个 ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) { }; ActionStringCancelBlock cancel = ^(ActionSheetStringPicker *picker) { NSLog(@"Block salutation Picker Can

我正在使用显示列表并从列表中选择任何一个

  ActionStringDoneBlock done = ^(ActionSheetStringPicker *picker, NSInteger selectedIndex, id selectedValue) {

   };

ActionStringCancelBlock cancel = ^(ActionSheetStringPicker *picker) {

    NSLog(@"Block salutation Picker Canceled");

};

[ActionSheetStringPicker showPickerWithTitle:@"Select App" rows:arrApplist  initialSelection:SelectedAppIndex doneBlock:done cancelBlock:cancel origin:btnrest];
在这里,我的arrApplist有数千个值,现在如果我想选择最后一个值,我应该先滚动到最后一个结束形式(即使我知道要选择什么,这也需要更多的时间)。。因此,我想再提供两个选项,以便轻松选择所需的选项

1.想提供搜索栏吗

2.使用字母索引选择值(类似于)

请指导我如何实现上述行为


谢谢..

使用带有搜索栏和字母索引的tableview代替picker。Tableview将解决滚动更长的值列表的问题。这可能是一种简单的方法,我想提供“完成”和“取消”按钮。如果我创建自己的设计而不是actionstringPikcer,效果会更好