-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Margins of header/footer cannot be set using .onSetupView #452
Comments
Ok, I've come up with the following:
My question now: How can I pass along the string that would set textView.text? To set the section I do:
|
I've tried the following with no luck. label is always nil, even though I define it in '.onSetupView'
Attempting to set variable for title string.
Edit: Is there a reason why .onSetupView is called multiple times? I was doing some de-bugging and it looks like a print statement there is executed between 5-15 times.... |
It should be called once every time the tableView reloads that section. |
The following code has no effect on the layout margins of the default header/footer method.
How can the left/right margins be set properly in this scenario?
Is the proper way of adding images to a header view using custom class? What if I have 5 sections and want to use different images for each one? Is there a way to just pass the name of the image to be used instead of re-writing the same code over and over again under different class names?
How to manipulate label strings to eliminate all character capitalization?
For instance, with the above simple section definition....how would I accomplish 1,2,3?
Would any of this require overriding built-in tableView functions? I've been trying to discover the answer but so far I've hit dead-ends in potential solutions.
As always, help/hints are greatly appreciated!
The text was updated successfully, but these errors were encountered: