Closed haxinc closed 10 years ago
selectedRows
is an array containing NSNumbers. selectedRows[0]
contains the selected row in component 0 of your picker view. selectedRows[1]
contains the selected row in component 1 of your picker view and so on.
Therefore, you can get the title of the selected row in a certain component just like you calculated the title in
or
Hope this helps :)
Hmmm I think I didn't get the point since I tried selectedRows[0] it also shows number
Right, selectedRows[0]
contains the selected row in component 0. Knowing the index of the selected row also means that you know the title, as in
or
you also need a title for a certain index. You just need to re-use that knowledge.
Okay, I understood .. Thank for a rapidly reply!
Ok, then I will close this ticket.
Hi,
How chould I get the text/NSString of selected rows ?
Thanks