iOS 删除Main.storyboard后黑屏问题

Target -->Info  删除 Main storyboard na me

AppDelegate didFinishLaunchingWithOptions方法中 

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

[self.window makeKeyAndVisible];

注意 self.winow .rootViewController一定要赋值,否则报错

你可能感兴趣的:(iOS 删除Main.storyboard后黑屏问题)