如何防止导航栏消失是xcode7
How to prevent the navigation bar from dissappering in is xcode7
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath:NSIndexPath) {
let storyboard = UIStoryboard(name: "Customer", bundle: nil)
var destinationVC : AnyObject!
case 0: //CASE FOR default i.e. First VIEWCONTROLLER
destinationVC = storyboard.instantiateViewControllerWithIdentifier("CustomerNewQuote") as! CustomerNewQuote
self.presentViewController(destinationVC as! UIViewController, animated: true, completion: nil)
// showViewController(destinationVC as! UIViewController, sender: destinationVC)
print("First tapped")
break;
presentViewController 和 showViewController 都从被调用的视图中隐藏导航栏 controller.how 以防止 happening.I havr 在 Simulator.But 中添加模拟指标和视图的屏幕截图然后继续从其他视图或通过 crtl+拖动方法调用下面的视图导航栏 dissappears.I 是 iOS 的新手,请提前 help.Thanks。
您只需要嵌入导航控制器,特别是视图控制器。
Select 你的视图控制器
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath:NSIndexPath) {
let storyboard = UIStoryboard(name: "Customer", bundle: nil)
var destinationVC : AnyObject!
case 0: //CASE FOR default i.e. First VIEWCONTROLLER
destinationVC = storyboard.instantiateViewControllerWithIdentifier("CustomerNewQuote") as! CustomerNewQuote
self.presentViewController(destinationVC as! UIViewController, animated: true, completion: nil)
// showViewController(destinationVC as! UIViewController, sender: destinationVC)
print("First tapped")
break;
presentViewController 和 showViewController 都从被调用的视图中隐藏导航栏 controller.how 以防止 happening.I havr 在 Simulator.But 中添加模拟指标和视图的屏幕截图然后继续从其他视图或通过 crtl+拖动方法调用下面的视图导航栏 dissappears.I 是 iOS 的新手,请提前 help.Thanks。
您只需要嵌入导航控制器,特别是视图控制器。
Select 你的视图控制器