ming1016 / PagerTab

UIScrollView实现滑动转换页面,类似网易云音乐iOS版的页面滑动切换效果

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode 7 奔溃

johnlui opened this issue · comments

模拟器和真机都奔溃,说没有设置 rootViewController:
Application windows are expected to have a root view controller at the end of application launch

是我不会设置么== 我一直用 Swift,从 Main.Storyboard 启动,没从 main.m 启动过。

yeah, it wil be crashed in Xcode7 or Xcode7.2 beta. I modified the AppDelegate.m with below codes and it works well:

  • self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  • self.window.rootViewController = [[ViewController alloc] init];
  • [self.window makeKeyAndVisible];
  • //[SMTopWindow work];

已修复,多谢@litt1e-p