Transfer selected value from custom UIPickerView to main ViewController

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

  1. macrumors member

    Joined:
    Jul 16, 2008
    #1
    Hi.
    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. thread starter macrumors member

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

Share This Page