Open ejwalters opened 4 years ago
I am attempting to implement this by adding a UIView to the storyboard and subclassing as DropDown. Then, I set the data array and built the project.
DropDown
testDropDown.dataSource = ["Car", "Motorcycle", "Truck"]
The error I get when opening the VC where I have the above code is as follows: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITraitCollection reloadData]: unrecognized selector sent to instance 0x600002f44900'
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITraitCollection reloadData]: unrecognized selector sent to instance 0x600002f44900'
Does anyone know why I'm receiving this error?
I am attempting to implement this by adding a UIView to the storyboard and subclassing as
DropDown
. Then, I set the data array and built the project.testDropDown.dataSource = ["Car", "Motorcycle", "Truck"]
The error I get when opening the VC where I have the above code is as follows:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITraitCollection reloadData]: unrecognized selector sent to instance 0x600002f44900'
Does anyone know why I'm receiving this error?