M
M
Maxim Globak2015-08-14 23:56:40
Mobile devices
Maxim Globak, 2015-08-14 23:56:40

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
d92929420bf24f96a00bb7237f21deda.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2015-08-15
@maximglobak

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)
    }

M
Maxim Globak, 2015-08-15
@maximglobak

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 question

Ask a Question

731 491 924 answers to any question