You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You create a class conforming to SupplementaryViewCreator or use any of its implementation like BasicSupplementaryViewCreator.
Then you assign it to the data source with any of the following methods
/// Sets a header creator.openfunc set(headerCreator:SupplementaryViewCreator)/// Sets a footer creator.
open func set(footerCreator:SupplementaryViewCreator)/// Sets both header and footer creators.
open func set(headerCreator:SupplementaryViewCreator, footerCreator:SupplementaryViewCreator)
If you have a one basic data source. Just assign it to it. But if you have a CompositeDataSource(sectionType: .multi), you can assign it to the root composite data source to get the same header and/or footer for all sections or assign different ones to ALL the children to get different headers and/or footers for each section.
How to add footer or header view for each section.
in Objective C we can use:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {}
The text was updated successfully, but these errors were encountered: