-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm a dummy, but how to set section header? #61
Comments
@rablador please use markdown syntax for you code. |
Try setting header height to some non-zero value. |
@DenHeadless No change. Current configuration is as follows: SearchResultSectionHeader.swift
SearchResultSectionHeaderModel.swift
In view controller - viewDidLoad
|
And you should also set header model, for example like so:
|
Ah, I did not realise I have to set an actual model object! Well, problem solved. 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have:
SearchResultSectionHeader
- UIView with matching nib, implements ModelTransferSearchResultSectionHeaderModel
- Model for the aboveI've tried (in all combinations):
manager.registerHeader(SearchResultSectionHeader.self)
manager.memoryStorage.setSectionHeaderModel(SearchResultSectionHeader.self, forSection: 0)
manager.memoryStorage.setSectionHeaderModel(SearchResultSectionHeaderModel.self, forSection: 0)
Still can't see my custom section header view in the table. I have populated the table with cells. I must be doing something wrong, but what?
The text was updated successfully, but these errors were encountered: