From 40ecac8e602dfdd06ffc5ad6d3a6daae19bec43e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 25 Sep 2016 00:21:12 -0300 Subject: [PATCH] Don't try to load a launch storyboard on tvOS (it doesn't use them). --- src/video/uikit/SDL_uikitappdelegate.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m index 1159b60104250..60aeeda4f2591 100644 --- a/src/video/uikit/SDL_uikitappdelegate.m +++ b/src/video/uikit/SDL_uikitappdelegate.m @@ -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)) { @@ -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];