How can I get the current selected row for UIPicker?
How can I get the current selected row for UIPic开发者_开发知识库ker?
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.
精彩评论