mamaral / Onboard

An iOS framework to easily create a beautiful and engaging onboarding experience with only a few lines of code.
MIT License
6.46k stars 764 forks source link

Calling the walkthrough pages from a button on a separate VC? #74

Closed inadeem closed 9 years ago

inadeem commented 9 years ago

How would I call the walkthrough pages from a different VC? I have a settings page with a "tutorial" button. When the user clicks "tutorial", I want them to see the walkthrough pages.

I'm having trouble with showing the pages. I'm using this code, and some other similar ones:

//**** let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewControllerWithIdentifier("OnboardingViewController") as! UIViewController var initialViewController = storyboard.instantiateViewControllerWithIdentifier("OnboardingViewController") as! UIViewController

//*****

I'm getting an error stating: "Storyboard doesn't contain a view controller with identifier 'OnboardingViewController"

I've tried using: onboardingVC. onboardingContentViewController, and generateOnboardingViewController.

Is there an identifier associated with the VC?

Would you have any idea?

inadeem commented 9 years ago

This was resolved.