Alright, I have multiple view controllers / views that contain forms with PickerView's. Because the picker view is being used so often, I figured I would create a seperate view/view controller for the picker view, so I don't have to declare 2 or 3 different picker views in each of the other view's. My problem is, how can I populate the picker view based on what button is pressed. For example, if the user hits button1 on firstviewcontroller, populate the picker view from firstviewArray and display, or if the user hits button2 on firstviewcontroller, populate the picker view from secondviewArray. Is this the approach I should take? Or should I just individually create the pickerviews for each possible selection? Any help/articles/source code would be appreciated!
+1
A:
Can't you pass the array into the view controller dedicated for the picker view?
UK-AL
2010-06-21 15:52:25
That's what I'm having trouble doing. I'm not sure what the best way of going about that would be? Should I change the button class to the picker view and create a function in the picker view controller?
MikeyJ
2010-06-21 16:40:31