ios - Could not find a storyboard named 'main' in bundle NSBundle
怪我咯
怪我咯 2017-04-18 09:43:33
0
1
407
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //创建窗口 self.window =[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; //加载main.storyboard 创建控制器 UIStoryboard * stotyboard=[UIStoryboard storyboardWithName:@"main" bundle:nil]; //1.加载箭头指向的控制器 UIViewController *vc = [stotyboard instantiateInitialViewController]; //设置跟控制器 self.window.rootViewController=vc; //显示窗口 [self.window makeKeyAndVisible]; return YES; }
怪我咯
怪我咯

走同样的路,发现不同的人生

Antworte allen (1)
黄舟

确定是main?不是Main?

    Neueste Downloads
    Mehr>
    Web-Effekte
    Quellcode der Website
    Website-Materialien
    Frontend-Vorlage
    Über uns Haftungsausschluss Sitemap
    Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!