How can I get the current selected row for UIPicker?
I want to use it to get at the associated string. Like this. The problem is I do not know how to get the row.
//need to get currently selected row
NSString *strPeriodSelection = [arrayRecurChoices objectAtIndex:periodPicker.row???];
Use [pickerView selectedRowInComponent:0]. Check out this discussion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With