Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pashik

macrumors member
Original poster
Jul 16, 2008
43
0
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.
 
Possibly there is way to redefine UIPickerDelegate?
and call it in another way?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.