AssistoLab / DropDown

A Material Design drop down for iOS
MIT License
2.44k stars 622 forks source link

'NSInvalidArgumentException', reason: '-[UITraitCollection reloadData] #259

Open ejwalters opened 4 years ago

ejwalters commented 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.

testDropDown.dataSource = ["Car", "Motorcycle", "Truck"]

Screen Shot 2020-02-20 at 5 02 29 PM

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?