Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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 我们可以用UIPickerView创建自定义单元格吗?_Iphone_Objective C_Ios_Cocoa Touch - Fatal编程技术网

Iphone 我们可以用UIPickerView创建自定义单元格吗?

Iphone 我们可以用UIPickerView创建自定义单元格吗?,iphone,objective-c,ios,cocoa-touch,Iphone,Objective C,Ios,Cocoa Touch,我必须在多行中使用picker控件创建自定义TableView,有人可以帮助我吗?您可以将UIPickerView添加为UITableViewCell的子视图 不要忘记从heightForRowAtIndexPath:method返回适当的高度 可以将UIPickerView添加为UITableViewCell的子视图 不要忘记从heightForRowAtIndexPath:method返回适当的高度 [cell.contentView addSubView:pickerView]; if

我必须在多行中使用picker控件创建自定义TableView,有人可以帮助我吗?

您可以将UIPickerView添加为UITableViewCell的子视图

不要忘记从heightForRowAtIndexPath:method返回适当的高度

可以将UIPickerView添加为UITableViewCell的子视图

不要忘记从heightForRowAtIndexPath:method返回适当的高度

[cell.contentView addSubView:pickerView];
if (cellContainsPickerView) return 200.0; // The height of the picker view