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

Method 'setFrontCardView' with Objective-C selector 'setFrontCardView:' conflicts with setter for 'frontCardView' with the same Objective-C selector #79

Open
datomnurdin opened this issue May 6, 2015 · 3 comments

Comments

@datomnurdin
Copy link
Contributor

I got this two error messages after updated xcode 6.3.1.

/Users/MNurdin/Documents/Github/MDCSwipeToChoose/Examples/SwiftLikedOrNope/SwiftLikedOrNope/ChoosePersonViewController.swift:111:10: Method 'setFrontCardView' with Objective-C selector 'setFrontCardView:' conflicts with setter for 'frontCardView' with the same Objective-C selector

Code

func setFrontCardView(frontCardView:ChoosePersonView) -> Void{

        // Keep track of the person currently being chosen.
        // Quick and dirty, just for the purposes of this sample app.
        self.frontCardView = frontCardView
        self.currentPerson = frontCardView.person
    }

Please advice. Thank you.

@touhidurabir
Copy link

just rename the "setFrontCardView" method to whatever you like . for me i just renamed the method to "setFrontCardViewUpdate" . then you have to change the corresponding code section where this method is called in the ChoosePersonViewController.swift file . there should 2 places where the method "setFrontCardView" is called . just change those to the new method name.

@datomnurdin
Copy link
Contributor Author

It's working, but why it happen like that? can you explain it to me sir?

@datomnurdin
Copy link
Contributor Author

Please check my pull request. #85

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

2 participants