pavankataria / SwiftDataTables

A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
MIT License
448 stars 69 forks source link

could you give me a example on Delegate for maximum customisation? #16

Closed yang19930204 closed 6 years ago

yang19930204 commented 6 years ago

I try my best but can't hide the search bar

yang19930204 commented 6 years ago

1.this is DataTableConfiguration.swift from pod ,which is different from your example wx20180722-023054

2.this is my code to hide searchbar wx20180722-023030

pavankataria commented 6 years ago

Hi, which version of the cocoapods did you install?

pavankataria commented 6 years ago

As you can see, the latest version of the database configuration file looks like this: https://github.com/pavankataria/SwiftDataTables/blob/0.6.31/SwiftDataTables/Classes/DataTableConfiguration.swift This is how yours should look like so long as you have the latest release.

On another note, you may just be missing to set the delegate :) Setting the delegate would call that method. Add a breakpoint to ensure that return false is indeed being called.

Please get back to me as soon as so I can make sure you've been able to hide the search bar.

yang19930204 commented 6 years ago

Thank u ,Success!