mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix a crash when UILaunchStoryboardName is not specified in Info.plist (#6234)
Some developers might prefer launch images.
This commit is contained in:
parent
2a433bc685
commit
49ef4adad3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user