I'm working with revealViewController
, and inside this revealViewController I wanted to create a UITableView
with custom cells according to this tutorial: https://www.youtube.com/watch?v=EVJiprvRLoo
and here is my code:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let vcName = identities[indexPath.row]
let viewController = storyboard?.instantiateViewControllerWithIdentifier(vcName)
self.navigationController?.pushViewController(viewController!, animated: true)
}
I'm using a storyboard, but I didn't get any issues, but it's not working.
I also tried to make a push segue to that view controller, but then my navigationViewController disappears, and I think it's would be easier by using code.
Sorry if my question is not accurate, but hope you can understand it.
Many Thanks.