Author Topic: How to get the currently selected row in a table view  (Read 1607 times)

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
How to get the currently selected row in a table view
« on: November 24, 2014, 02:41:36 PM »
You can get the currently selected row in a table view like this:

Code: [Select]
let indexPath = self.tableView.indexPathForSelectedRow()
All the best!
Kevin McNeish
Author of "Learn to Code in Swift": https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11
« Last Edit: August 19, 2015, 05:30:18 AM by kjmcneish »