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

Unrecognized selector sent to instance #28

Open
panzerdp opened this issue Dec 3, 2014 · 4 comments
Open

Unrecognized selector sent to instance #28

panzerdp opened this issue Dec 3, 2014 · 4 comments

Comments

@panzerdp
Copy link

panzerdp commented Dec 3, 2014

Hi,
thanks for the great pod.
I'm using this in a Swift project, built on Xcode 6.2 beta.
But I'm having this error
[UIView setIsCustomPanel:]: unrecognized selector sent to instance 0x7fdfba507250
when trying to display the view.
My controller code:

class TourViewController: UIViewController, MYIntroductionDelegate {

    override func viewDidLoad() {     
        super.viewDidLoad()
        let frame = CGRectMake(0, 0, view.frame.size.width, view.frame.size.height),
        introductionPanels = [
            MYIntroductionPanel(frame: frame, nibNamed: "WelcomeTour1"),
            MYIntroductionPanel(frame: frame, nibNamed: "WelcomeTour2"),
            MYIntroductionPanel(frame: frame, nibNamed: "WelcomeTour3"),
            MYIntroductionPanel(frame: frame, nibNamed: "WelcomeTour4")
        ],
        introductionView = MYBlurIntroductionView(frame: frame)
        introductionView.buildIntroductionWithPanels(introductionPanels)
        introductionView.delegate = self
        view.addSubview(introductionView)
    }

}

What could be the problem?

@panzerdp panzerdp changed the title [UIView setIsCustomPanel:]: unrecognized selector sent to instance 0x7fdfba507250 Unrecognized selector sent to instance Dec 3, 2014
@howardhou
Copy link

I have the same issue.

@panzerdp
Copy link
Author

panzerdp commented Dec 5, 2014

@howardhou
It is something that author needs to update objective-c code to be compatible with Swift.
In the end I used this solution, which works correct and has almost the same functions.
Thanks.

@ezefranca
Copy link

any progress?

@brisling
Copy link

brisling commented Jul 1, 2015

it seems nothing to do with swift, i have the same problem in a obj-c projects...

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

4 participants