开源库 OnBoard


https://github.com/mamaral/Onboard

  • 创建新文件OnBoardViewController.{hm}
  • 根据官方Demo中的MyOnboardingViewController.{hm}完成OnBoardViewController
  • AppDelegate.m中的实现改为StoryBoard形式。
  1. 编辑 - (void)setupNormalRootViewControllerAnimated:(BOOL)animated;
ViewController *mainVC = [UIViewController new];

改为

UIViewController *mainVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateInitialViewController];