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.
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?