开发者

Can you mix custom-view and non-custom view components in a single UIPickerView?

开发者 https://www.devze.com 2023-01-12 23:21 出处:网络
I have a multi-component UIPickerView in my application.Two components are plain and completely served by the pickerView:titleForRow:forComponent: method.My third component however requires a custom v

I have a multi-component UIPickerView in my application. Two components are plain and completely served by the pickerView:titleForRow:forComponent: method. My third component however requires a custom view via the pickerView:viewForRow:forComponent:reusingView: method. I don't see any way in the documentation to have a "partially customized" UIPickerView where some components use 开发者_如何学JAVA...titleForRow... and some use ...viewForRow.... Is this possible? If so, how does one do that?


You've got to go all or nothing. The plain, boring default views are pretty much just a UILabel. You should be able to easily recreate this view.

0

精彩评论

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