iRam11
iRam11

Reputation: 307

Table view function for select row

I am new for iPhone development. I want to make table view in which i have shown list of categories. When user select on any row then appear a right sign or UITableViewCellAccessoryCheckmark. And the text of that row save in a string. How do that in table view? Which method or function used?

Upvotes: 0

Views: 176

Answers (1)

Caleb
Caleb

Reputation: 124997

When you configure a table view, you give it a delegate that implements the UITableViewDelegate protocol. One of the many messages sent to the delegate is -tableView:didSelectRowAtIndexPath:. As the creator of the delegate, you can implement this method to take whatever action you like when the user selects a row in the table.

Upvotes: 1

Related Questions