Skip to content

Commit

Permalink
Don't try to load a launch storyboard on tvOS (it doesn't use them).
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Sep 25, 2016
1 parent 666d3fe commit 40ecac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/uikit/SDL_uikitappdelegate.m
Expand Up @@ -364,6 +364,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
* time events are pumped. */
UIViewController *vc = nil;

/* TODO: Try to load the 1080p launch image on tvOS. */
#if !TARGET_OS_TV
NSString *screenname = [bundle objectForInfoDictionaryKey:@"UILaunchStoryboardName"];

if (screenname && UIKit_IsSystemVersionAtLeast(8.0)) {
Expand All @@ -382,6 +384,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
if (vc == nil) {
vc = [[SDLLaunchScreenController alloc] initWithNibName:screenname bundle:bundle];
}
#endif

if (vc.view) {
launchWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
Expand Down

0 comments on commit 40ecac8

Please sign in to comment.