Can't show DetailViewController on didSelectRowAt
ElyDantas opened this issue · comments
Ely Dantas commented
fatalError("current cell is empty or add navigationController")
Couldn't find a way around after some good time searching in the Xcode example project and digging in stackoverflow, i appreciate any help.
ikolpachkov commented
Please take a look the example
public override func tableView(_: UITableView, didSelectRowAt _: IndexPath) {
let storyboard = UIStoryboard.storyboard(storyboard: .Main)
let detaleViewController: DemoDetailViewController = storyboard.instantiateViewController()
pushViewController(detaleViewController)
}