Transfer selected value from custom UIPickerView to main ViewController

Discussion in 'iOS Programming' started by pashik, Aug 16, 2008.

  1. pashik macrumors member

    Jul 16, 2008
    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.
  2. pashik thread starter macrumors member

    Jul 16, 2008
    Possibly there is way to redefine UIPickerDelegate?
    and call it in another way?

Share This Page