I am currently using the Xcode 6 pre release (not beta) and the simulator on OS X 10.10 Yosemite beta 7. I am trying to build a project developed in xcode 6, but the app cra
Same problem here: set a custom font for UITableViewHeaderFooterView in my app init, get this crash when showing a grouped UITableView.
What works for me is to delay customisation until the view controller is being created, i.e. do whatever you would have done at app init in the view controller's init. Irritating, but works for me.
- (id) init
{
...
if (self = [super init])
{
// customise table view headers
UILabel *headerLabel =
[UILabel appearanceWhenContainedIn: [UITableViewHeaderFooterView class], nil];
headerLabel.font =
[UIFont fontWithName: @"AvenirNext-Medium" size: 15];
...
}
}