I explain you what I’m trying to do.
I have a PickerView, and a button, i’d like when I select the row “Action1” on my Pickerview, the action become a UIAlert when i click on my button., and when I select the row ‘Action2’, the action become a ModalTransition when i click on my button.
How I can do it ?
Thanks
set a method for button click as
in method you can implement a case where the case options can be the values from the picker output(set a integer to know the selected index of picker via
UIPickerViewDelegates(pickeroption)