SDLunch
https://github.com/wang82426107/SDLaunchDemo
是一个具有多种页面类型的引导页.其中包括,广告页面类型、 新手导引类型 、 GIF背景页面类型、滚动图背景页面类型四种形式,基本上能满足所有的引导页需求.
四种类型演示图片如下所示.
SDLunch使用起来也比较简单方便.我们需要制定页面类型和某些参数即可.就拿广告类型的SDLunch做一下说明,代码是需要在AppDelegate中初始化我们的SDLaunchViewController,设置页面类型为ADLaunchViewController.由于广告页面大多数是动态的,所以我们需要指定广告图片的URL以及广告页面的URL,最后指定为根式图控制器.
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; SDLaunchViewController *vc = [[SDLaunchViewController alloc]initWithMainVC:[[ViewController alloc]init] viewControllerType:ADLaunchViewController]; vc.imageURL = @''; vc.adURL = @''; self.window.rootViewController = vc; [self.window makeKeyAndVisible];