Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the current selected row for UIPicker?

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???];
like image 295
jp chance Avatar asked Oct 29 '09 19:10

jp chance


1 Answers

Use [pickerView selectedRowInComponent:0]. Check out this discussion.

like image 71
luvieere Avatar answered Nov 15 '22 08:11

luvieere