Skip to content

Commit

Permalink
Merge pull request escoz#586 from bvirlet/master
Browse files Browse the repository at this point in the history
Prevent crash when using QFlatAppearance on an iOS6 device
  • Loading branch information
escoz committed Oct 7, 2013
2 parents fc0de22 + 8eb77f5 commit b19b728
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions quickdialog/QFlatAppearance.m
Expand Up @@ -48,9 +48,11 @@ - (void)setDefaults {
self.cellBorderWidth = 14;

#if __IPHONE_7_0
self.valueFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
self.labelFont = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
self.entryFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
if ([UIFont respondsToSelector:@selector(preferredFontForTextStyle:)]) {
self.valueFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
self.labelFont = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
self.entryFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
}
#endif

}
Expand All @@ -68,4 +70,4 @@ - (void)cell:(UITableViewCell *)cell willAppearForElement:(QElement *)element at
}


@end
@end

0 comments on commit b19b728

Please sign in to comment.