xcode删除Main.storyboard

2023-04-17  本文已影响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;
}

完成

上一篇下一篇

猜你喜欢

热点阅读