I'm facing a curious UITableView
behaviour and i don't know where this is coming from.
I'm building a very simple single view IOS8 Swift application with a first ViewController
with a UITableView
inside it and one custom Image cell. When i tap on a cell it Segue to my SecondViewController
.
My UITableView delegate and datasource is connected to the first ViewController.
Everything is working except when i tap a cell sometimes i have to tap it twice to trigger the Segue.
Here is my didSelectRowAtIndexPath
function:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
println("You clicked on (indexPath.row) row")
self.performSegueWithIdentifier("homeToDetail", sender:self)
}
My print is always returning the correct indexPath.
Is it a view hierarchy problem or something else ?
Thank you JD
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…