提交 49ef4ada 编写于 作者: K KyleWong 提交者: James D. Lin

Fix a crash when UILaunchStoryboardName is not specified in Info.plist (#6234)

Some developers might prefer launch images.
上级 2a433bc6
......@@ -392,6 +392,9 @@
if (_splashScreenView == nullptr) {
NSString* launchStoryboardName =
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"UILaunchStoryboardName"];
if (launchStoryboardName == nil) {
return nil;
}
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:launchStoryboardName bundle:nil];
if (storyboard == nil) {
return nil;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册