Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Wow, so it turns out that didSelectRowAtIndexPath is no longer correct in Swift 3. The correct usage is now didSelectRowAt. I didn't see this mentioned anywhere except thisthis question which I stumbled upon.

This:

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("You selected cell #\(indexPath.row)!") } 

Not This:

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath){ print("You selected cell #\(indexPath.row)!") } 

Wow, so it turns out that didSelectRowAtIndexPath is no longer correct in Swift 3. The correct usage is now didSelectRowAt. I didn't see this mentioned anywhere except this question which I stumbled upon.

This:

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("You selected cell #\(indexPath.row)!") } 

Not This:

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath){ print("You selected cell #\(indexPath.row)!") } 

Wow, so it turns out that didSelectRowAtIndexPath is no longer correct in Swift 3. The correct usage is now didSelectRowAt. I didn't see this mentioned anywhere except this question which I stumbled upon.

This:

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("You selected cell #\(indexPath.row)!") } 

Not This:

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath){ print("You selected cell #\(indexPath.row)!") } 
Source Link
user1715916
  • 333
  • 5
  • 15

Wow, so it turns out that didSelectRowAtIndexPath is no longer correct in Swift 3. The correct usage is now didSelectRowAt. I didn't see this mentioned anywhere except this question which I stumbled upon.

This:

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("You selected cell #\(indexPath.row)!") } 

Not This:

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath){ print("You selected cell #\(indexPath.row)!") }