iPHone splitting the UIPIcker question
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.
精彩评论