带有动态 table 单元格的侧边菜单将导航页面,但导航控制器为 nil

Side menu with dynamic table cell will navigate page but with navigation controller coming as nil

我已经使用 this 创建了侧边菜单。

但区别只是我使用了动态 UITableViewCell 而不是静态。

现在我在单击侧边菜单项时遇到导航问题。

我使用的导航代码如下:

dispatch_async(dispatch_get_main_queue()) {
    let propertyListing = self.storyboard?.instantiateViewControllerWithIdentifier("PropertyListing") as! PropertyListingController
    self.showViewController(propertyListing as UIViewController, sender: propertyListing )
}

它将导航页面,但之后导航控制器将为零。

可能是什么问题?任何建议将不胜感激。

而不是使用 "show",您需要推送新的视图控制器。

self.navigationController.pushViewController(propertyListing, animated: true)