unrecognized selector sent to instance
kemalserkan opened this issue · 0 comments
kemalserkan commented
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.