Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble With super.init(backgroundImage: nil, contents: nil) #101

Open
Huanqiang opened this issue Jan 30, 2016 · 0 comments
Open

trouble With super.init(backgroundImage: nil, contents: nil) #101

Huanqiang opened this issue Jan 30, 2016 · 0 comments

Comments

@Huanqiang
Copy link

Hi Sir,
I have an instance of a OnboardingViewController named OnBoardPageViewController on my Storyboard and it is set to be the 'Initial View Controller', followed the example here: #31 (comment)

class OnBoardPageViewController: OnboardingViewController {

    required init?(coder aDecoder: NSCoder) {
        super.init(backgroundImage: nil, contents: nil)      // it's Worry

        self.backgroundImage = UIImage(named: "onBoardBg")
        self.viewControllers = self.generateOnBoardPage()
        self.shouldBlurBackground = true
        self.fadePageControlOnLastPage = true
        self.fadeSkipButtonOnLastPage = true
        self.allowSkipping = true
        self.skipHandler = {
            self.handleOnboardingCompletion()
        }
    }

but,not luck, i meet a trouble:

OnBoardPageManager.swift: 12: 7: fatal error: use of unimplemented initializer 'init(nibName:bundle:)' for class 'PersonalFinance.OnBoardPageViewController'

I've seen people in the past who have this kind of problem, can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant