xcode删除Main.storyboard
2023-04-17 本文已影响0人
_菩提本无树_
第一步
删除main.storyboard

第二步
选择move to trash

第三步
修改launch screen file为Launscreen.storyboard

第四步
删除这一行

最后一步
//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;
}