开发者

iPHone splitting the UIPIcker question

开发者 https://www.devze.com 2023-01-02 14:57 出处:网络
How开发者_如何学Go do I split the UIPicker into multiple parts, like the date picker only not the Day, month, and year - my own specified variables such as - Gender and age?Your datasource method

How开发者_如何学Go do I split the UIPicker into multiple parts, like the date picker only not the Day, month, and year - my own specified variables such as - Gender and age?


Your datasource method

– numberOfComponentsInPickerView:

needs to return 2, or however many parts you want.

Then, in your other delegate and datasource methods, you need to take into account what component it's referencing, and populate/handle accordingly.

0

精彩评论

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

关注公众号