/CYLaunchAnimateViewController

A simple controller to make animate launch screen.

Primary LanguageObjective-C

CYLaunchAnimateViewController

A simple controller to make animate launch screen. It can be used as an introduction page or ad page when app is launched or reactived. It's extremely easy to use(Only two lines of code are required!).

Please check the .h to see how to customize anything

###Demo There are some kinds of animation effects ready to be used.

alt tag alt tag alt tag alt tag alt tag alt tag

Please check the animation effect enum in CYLaunchAnimateViewController.h.

###How to use The controller should be used in the AppDelegate.m:

    1. Import CYLaunchAnimateViewController.h
  #import "CYLaunchAnimateViewController.h"
    1. Initialize a customized launch view.
  //just an example
  UIView *launchView = [[UIView alloc]initWithFrame:[UIScreen mainScreen].bounds];
  /*
  * launchView setting...
  */
    1. Initialize a CYLaunchAnimateViewController(Before the initialization, please make sure the keyWindow of application have been set.)
  CYLaunchAnimateViewController *launchController = [[CYLaunchAnimateViewController alloc]initWithContentView:launchView animateType:CYLaunchAnimateTypePointZoomOut showSkipButton:YES];
  [launchController show];

You don't have to used the contentView with screen size. View with any size is OK! And the view will be set in the center of screen automatically.

alt tag