开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜