Skip to content

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

License

Notifications You must be signed in to change notification settings

k06a/LaunchScreenViewController

Repository files navigation

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 ...

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published