2015-06-09 43 views
1

我已創建使用this sidemenu。帶動態表格單元的副菜單將導航頁面,但導航控制器將作爲零

但差異只是我用動態UITableViewCell而不是靜態。

現在我面對導航問題,同時點擊側面菜單項。

我用導航代碼,如:

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

它將瀏覽網頁,但導航控制器將是零之後。

可能是什麼問題?任何建議將非常感謝。

回答

1

而不是使用「顯示」,你需要推新視圖控制器。

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