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 #1

Open
kemalserkan opened this issue Nov 13, 2018 · 0 comments
Open

unrecognized selector sent to instance #1

kemalserkan opened this issue Nov 13, 2018 · 0 comments

Comments

@kemalserkan
Copy link

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PVSwitch.PVSwitch setThumbTintColor:]: unrecognized selector sent to instance 0x10678d730'

I try to add PVSwitch with pod

Then create programmatically and try to add navigation bar..
switchByCode = PVSwitch()
switchByCode!.addTarget(self, action: #selector(viewModeSwitchChanged(_:)), for: .valueChanged)
let switch_display = UIBarButtonItem(customView: switchByCode!)
navigationItem.rightBarButtonItem = switch_display
I got error.

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