Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.04 KB

LaunchScreenViewController

iOS View Controller for loading default launch screen in app and maybe to add some animations to it

This library will help you to build launch screens like this for example:

Installation

pod 'LaunchScreenViewController'

Usage

  1. Add hidden elements to LaunchScreen.xib
  2. Create LaunchScreenViewController subclass
  3. Add controller subclass to storyboard
  4. Create modal segue and call it once manually in viewWillAppear:
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        [self performSegueWithIdentifier:@"segue_screensaver" sender:nil];
    });
}
  1. Add custom animations to your controller subclass

Contribute

You are welcome to fork, PR, create issues ...