John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

How to detect when the cell clicked in SWRevealViewController #635

Open hungwei0331 opened 8 years ago

hungwei0331 commented 8 years ago

I had merged the SWRevealViewController in porject, it works well

but I want to do something after selected cell ,

screen shot 2016-10-26 at 1 31 47 am

How can I detect the clicked event?

Thanks for any replay in advance.

iDevelopper commented 8 years ago
    // MARK: - Table view delegate

    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        tableView.deselectRow(at: indexPath, animated: true)

        let cell = tableView.cellForRow(at: indexPath)

        ...
hungwei0331 commented 8 years ago

Its works for me, thank you so much