javalnanda / JNDropDownMenu

Swift version of https://github.com/dopcn/DOPDropDownMenu
MIT License
64 stars 8 forks source link

Method conflict with SpreadsheetView #8

Closed tuononh closed 7 years ago

tuononh commented 7 years ago

There are some methods conflict with SpreadsheetView (I use this to display data and your plugin to choose which dataset to display). How can I use both? numberOfColumns is an example.

javalnanda commented 7 years ago

You will need to implement protocol in separate class to avoid conflicts. Create a two separate datasource classes which confirms to protocol and assign these classes as datasource for dropdown and spreadsheet respectively instead of implementing protocol in ViewController.