IOS技术型

多个Storyboard

2016-05-09  本文已影响100人  衹氏

app中包含有多个Storyboard故事模版集合。

Eg:LaunchScreen.storyboard(启动屏幕故事模版集合),Main.storyboard(命名为Main的主应用故事模版集);

备注:(无论Deployment Info下的Main Interface为LaunchScreen.storyboard或者Main.storyboard或者xxxx.storyboard或者xxxx.xib),LaunchScreen.storyboard(启动屏幕故事模版集合)一定会被检索查走一次。


换句话而言:


当Main Interface为LaunchScreen.storyboard(启动屏幕故事模版集合)时,进入LaunchScreen.storyboard故事模版集合上并呈现相应的viewController实例对象的有效视图,注意:此时不会自动的切换至其它模版上。


当Main Interface为Main.storyboard或者xxxx.storyboard或者xxxx.xib非LaunchScreen.storyboard故事模版集合时app程序必然会先进入LaunchScreen.storyboard而后自动的切换至Main Interface的相应模版上


[self performSegueWithIdentifier:@"GoToMain" sender:nil];

多Storyboard页面切换

上一篇 下一篇

猜你喜欢

热点阅读