lapacino
lapacino

Reputation: 171

segue work only at the second click instead of one click

am working on a to do list app and when am testing the app the segue work only at the second click for the first time then the segue start to work at the first click with late in the print ln statement

Upvotes: 2

Views: 154

Answers (1)

lapacino
lapacino

Reputation: 171

problem solved instead of writing this:

tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) 

I wrote this:

tableView(tableView: UITableView, did**De**selectRowAtIndexPath indexPath: NSIndexPath)         

Upvotes: 2

Related Questions