Don't try to load a launch storyboard on tvOS (it doesn't use them).
authorAlex Szpakowski
Sun, 25 Sep 2016 00:21:12 -0300
changeset 10369001cbf1fda90
parent 10368 4842604f647a
child 10370 d90965a3b100
Don't try to load a launch storyboard on tvOS (it doesn't use them).
src/video/uikit/SDL_uikitappdelegate.m
     1.1 --- a/src/video/uikit/SDL_uikitappdelegate.m	Sat Sep 24 23:33:49 2016 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitappdelegate.m	Sun Sep 25 00:21:12 2016 -0300
     1.3 @@ -364,6 +364,8 @@
     1.4       * time events are pumped. */
     1.5      UIViewController *vc = nil;
     1.6  
     1.7 +    /* TODO: Try to load the 1080p launch image on tvOS. */
     1.8 +#if !TARGET_OS_TV
     1.9      NSString *screenname = [bundle objectForInfoDictionaryKey:@"UILaunchStoryboardName"];
    1.10  
    1.11      if (screenname && UIKit_IsSystemVersionAtLeast(8.0)) {
    1.12 @@ -382,6 +384,7 @@
    1.13      if (vc == nil) {
    1.14          vc = [[SDLLaunchScreenController alloc] initWithNibName:screenname bundle:bundle];
    1.15      }
    1.16 +#endif
    1.17  
    1.18      if (vc.view) {
    1.19          launchWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];