美文网首页
xcode删除Main.storyboard

xcode删除Main.storyboard

作者: _菩提本无树_ | 来源:发表于2023-04-17 16:35 被阅读0次

    第一步

    删除main.storyboard

    截屏2023-04-18 16.14.05.png

    第二步

    选择move to trash

    截屏2023-04-18 16.14.11.png

    第三步

    修改launch screen file为Launscreen.storyboard

    截屏2023-04-18 16.14.27.png

    第四步

    删除这一行

    截屏2023-04-18 16.26.50.png

    最后一步

    //DSNavBaseController自己定义的nav
    //window在APPdelegate定义
    //DSHomeVC自己定义自己的首页控制器
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        // Override point for customization after application launch.
        self.window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
        DSNavBaseController *nav = [[DSNavBaseController alloc] initWithRootViewController:[[DSHomeVC alloc]init]];
        nav.view.backgroundColor = [UIColor clearColor];
        self.window.backgroundColor = [UIColor whiteColor];
        self.window.rootViewController = nav;
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    完成

    相关文章

      网友评论

          本文标题:xcode删除Main.storyboard

          本文链接:https://www.haomeiwen.com/subject/tkecjdtx.html