开发者

How can I get the current selected row for UIPicker?

开发者 https://www.devze.com 2022-12-09 15:50 出处:网络
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.

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

精彩评论

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