开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜