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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.