I need the index number of the item that I have selected in my pickerview. I am able to get the row value thru objectatindex:row, however I need the index value when I click the done button that I have. Thanks
我需要在pickerview中选择的项的索引号。我可以通过objectatindex:row来获取行值,但是当我点击完成的按钮时,我需要索引值。谢谢
1 个解决方案
#1
1
figured it out
搞懂了
_lblResult.text=
[NSString stringWithFormat:@"%d",[self.pvTickets selectedRowInComponent:0]]
#1
1
figured it out
搞懂了
_lblResult.text=
[NSString stringWithFormat:@"%d",[self.pvTickets selectedRowInComponent:0]]