开发者

Can we create the Custom Cell with the UIPickerView?

开发者 https://www.devze.com 2023-03-22 03:18 出处:网络
I have to create the custom TableView 开发者_如何学JAVAwith the picker control in multiple rows,can anyone help me on this?You can add the UIPickerView as a subView of UITableViewCell.

I have to create the custom TableView 开发者_如何学JAVAwith the picker control in multiple rows,can anyone help me on this?


You can add the UIPickerView as a subView of UITableViewCell.

[cell.contentView addSubView:pickerView];

Don't forget to return the appropriate height from heightForRowAtIndexPath: method.

if (cellContainsPickerView) return 200.0; // The height of the picker view
0

精彩评论

暂无评论...
验证码 换一张
取 消