Linux world
Linux world

Reputation: 3768

how to detect a user tap on table view

i want to detect user touch on table view so that i can pass that particular section information to the next view to display it ...

how can i do it

Upvotes: 1

Views: 708

Answers (1)

Brian
Brian

Reputation: 15706

You need to set your view controller as the delegate for the table view:

tableView.delegate = self;

Then implement the tableView:didSelectRowAtIndexPath:. If you're just getting started, you should probably read the UITableView programming guide.

Upvotes: 2

Related Questions