标签: iphone
如何获取UIPicker的当前选定行?
我想用它来获取相关的字符串。像这样。问题是我不知道如何获得这一行。
//need to get currently selected row NSString *strPeriodSelection = [arrayRecurChoices objectAtIndex:periodPicker.row???];
提前致谢。
答案 0 :(得分:5)
使用[pickerView selectedRowInComponent:0]。查看this讨论。