Detailed scenario is like this :
I am creating 10 buttons using a loop and setting the tags from 0-9. On tap of each button I am calling a UIPickerView in which I am loading data from different arrays. Till here I am getting the expected results. But I want the selected row from the pickerView should set as the title of respective button.
Way I tried – I stored the selected row in a NSString in the pickerViewDelegate method and trying to setTitle like :
[myButton setTitle:selectedString forState:UIControlStateNormal]
but it’s not reflecting in any of the buttons.
Any idea what am I missing?
Thanks
Your UIButton tap action,
or
Your UIPickerView delegate
Hope this will helps you!