AppDelegate 中didFinishLaunchingWithOptions方法创建一个导航view

    ZBMainViewController *main=[[ZBMainViewController alloc] init];

    

    ZBBaseController *navigationcontroller=[[ZBBaseController alloc] initWithRootViewController:main];

    self.window.rootViewController=navigationcontroller;

原文地址:https://www.cnblogs.com/zhibin/p/4114516.html