shreedevi
shreedevi

Reputation: 539

read data from the table view

how do i read the content displayed in the table. My case is : i have a table where i display the values from string array . now when i select a particular row, i want to read the contents of the selected row of the table. i tried reading the data from the NSMutable array, but does not work. Please help

Upvotes: 0

Views: 343

Answers (1)

Morion
Morion

Reputation: 10860

you can try to use

[[[myTableView cellForRowAtIndexPath:indexPath] textLabel] text]

in your didSelectRowAtIndexPath method. Or you want to know something else?

Upvotes: 1

Related Questions