Answer the question
In order to leave comments, you need to log in
Does not go to cell (static cell) when taping, what should I do?
Good evening everyone! I have a problem, I can not solve for a very long time.
There is a tableviewcontroller in it, two sections (static cell) and a cell with the right detail style, and when I click on these cells, I can’t go to the next view (nothing happens), although I put the button and calmly move on.
Can anyone help?
swift
Answer the question
In order to leave comments, you need to log in
And how will it transition if there is no transition logic?
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.deselectRowAtIndexPath(indexPath, animated: true)
let vc = self.storyboard?.instantiateViewControllerWithIdentifier("YourViewControllerID") as! UIViewController
self.navigationController?.pushViewController(vc, animated: true)
}
Thanks, you can also solve this problem by making the table dynamic with explicit section and cell parameters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question