How to get the indexpath of a custom table view cell when an UIImage inside of it is tapped and captured by UITapGestureRecognizer in prepareForSegue
Ok a lot of variables in the title, sorry I couldn't make it any more simpler. First, I have a custom table cell with descriptions like so now, when a user taps on the cell itself, it would go to View A, however, there is a UITapGestureRecognizer that is connected to the UIImage at the left, which is connected to a segue that goes to View B. All is fine, but I need some data that is inside the table view cell that I can pass to View B so it can do some stuff once the view is shown. override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if(segue.identifier == "toViewA") {