Closed pavkosykh closed 10 years ago
Based on the error my guess is the issue is related to the following lines of code:
UINavigationController *navigationController =(UINavigationController *)self.window.rootViewController;
MainViewController *controller = (MainViewController *)navigationController.topViewController;
At that point, self.window.rootViewController is the OnboardingViewController, not a UINavigationController. Given that it isn't a UINavigationController, trying to access the topViewController property on it is causing it to crash.
You need to create your normal root view controller, not try to use the onboarding view controller.
I'm closing this for now, as it appears to be an implementation issue and not a bug.
Thanks Mike.)) good luck)
I'm wrote appDelegate.m like this.
Onboard download, but then I tap skip button or "Get start" on last screen, Xcode throw exception and terminating my app
What's wrong with me?)