View Full Version : Transfer selected value from custom UIPickerView to main ViewController

Aug 16, 2008, 06:45 AM
i have view with 2 buttons each calls certain UIPickerView (with own number of elements).
I created class CustomPicker: UIPickerView <UIPickerViewDelegate>
So this class has method didSelectRow where i can receive selected value.

In a controller SomeController:UIViewController<UIPickerViewDelegate> i created 2 pickers (one is created inside this controller and i can receive selected value in didSelectRow method but another is created from CustomPicker).

So problem is how i can get selected value of CustomPicker in SomeController?
Is it way to access didSelectRow from CustomPicker?

thanx for reply.

Aug 16, 2008, 09:42 AM
Possibly there is way to redefine UIPickerDelegate?
and call it in another way?