Xcode6で実行した
Appdelegate.m
[[UILabel appearance] setFont:[UIFont fontWithName:@"フォント名" size:15]];
TableView
-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
NSArray *arry = [NSArray arrayWithObjects:NSLocalizedString(@"A",@"B",@"C" nil), nil];
return [arry objectAtIndex:section];
}
-(NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
{
NSArray *arry = [NSArray arrayWithObjects:NSLocalizedString(@"A",@"B",@"C" nil), nil];
return [arry objectAtIndex:section];
}
titleForHeaderInSection, titleForFooterInSectionで、iOS8環境でクラッシュしてしまう。
下記のエラーメッセージでクラッシュする。
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'scaledValueForValue: called on a font that doesn't have a text style set'
現状
現状は、カスタムフォントを外して個別に設定することで対応しましたが、解決方法はまだ見つけていません。