3
  1. create a ios single view project.
  2. delete storyboard.
  3. create a view controller and init it with following code.

    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    ViewController* controller = [[ViewController alloc] init];
    self.window.rootViewController = controller;
    BNRHypnosisView* view = [[BNRHypnosisView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    controller.view = view;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    
  4. delete the info.plist Launch screen interface base name which is UILaunchStoryboardName entry.

  5. the app window size would be smaller than the undeleted one. big one small one Why is there such difference since the LaunchScreen.xib is deleted? IMO, the compiler or linker should report error since the xib is missing.
Jichao
  • 40,341
  • 47
  • 125
  • 198

1 Answers1

3

Presence and use of the Launch storyboard indicates to iOS that you've intentionally considered how your app will look on all devices. This is similar to how the 568 pixel launch image indicated iPhone support when it came out - otherwise your app will look like the screenshot you took. It seems Apple is relying on the Launch storyboard more and more lately to allow developers to indicate that their app is intended for all size classes, orientations, and devices, as use of it is also required for iPad multitasking mode.

Other references:

Community
  • 1
  • 1
Andy Obusek
  • 12,614
  • 4
  • 41
  • 62