UITableView Stomps on UITableViewHeaderFooterView TextLabel Font
| Originator: | jonathan | ||
| Number: | rdar://26299584 | Date Originated: | 05/16/2016 |
| Status: | Duplicate of 17711441 | Resolved: | |
| Product: | iOS SDK | Product Version: | 9.3 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When a subclass of `UITableViewHeaderFooterView` customizes the font property of the textLabel, it is stomped on and replaced by `UITableView` somewhere between `tableView:viewForHeaderInSection:` and `tableView:willDisplayHeaderView:`. Steps to Reproduce: 1. Create a subclass of `UITableViewHeaderFooterView`. 2. In the `init(reuseIdentifier:)`, set the textLabel's font property to something custom. 3. Register the subclass with the table view using `registerClass:forHeaderFooterViewReuseIdentifier:`. 4. Return an instance of the custom header in `tableView:viewForHeaderInSection`. Expected Results: The section header's label should have the custom font applied. Actual Results: The section header's label will have a default system font applied, replacing any customization done.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!