Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.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
Iphone 在UIPicker中引用不同的行_Iphone_Objective C - Fatal编程技术网

Iphone 在UIPicker中引用不同的行

Iphone 在UIPicker中引用不同的行,iphone,objective-c,Iphone,Objective C,现在我已经将UIPicker拆分为多行,如何在设置它们的值时引用这些单独的行?UIPickerViewUIPickerViewer协议有一个方法pickerView:titleForRow:forComponent:-组件就是您关心的“轮子”,从左侧的0索引。该行是可以显示在组件中的值的列表。必须将UIPickerView委托和数据源成员设置为实现UIPickerViewDeleteGate和UIPickerViewDataSource协议的一个或多个对象。如果已经将其拆分为多个组件(垂直列或控

现在我已经将UIPicker拆分为多行,如何在设置它们的值时引用这些单独的行?

UIPickerView
UIPickerViewer
协议有一个方法
pickerView:titleForRow:forComponent:
-组件就是您关心的“轮子”,从左侧的0索引。该行是可以显示在组件中的值的列表。必须将UIPickerView
委托
数据源
成员设置为实现
UIPickerViewDeleteGate
UIPickerViewDataSource
协议的一个或多个对象。如果已经将其拆分为多个组件(垂直列或控制盘),则可能已经设置了
UIPickerViewDataSource