1
我有这个奇怪的问题,在iOS的7我的应用程序UIStatusBar
看起来像这样:状态栏字体的变化6.1
但在iOS的6.1 UIStatusBar
看起来像这样:
所以,我知道是什么问题,这是因为我重写了systemFontOfSize
和boldSystemFontOfSize
:
#import "UIFont+SytemFontOverride.h"
@implementation UIFont (SystemFontOverride)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
+ (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize;
{
return [UIFont fontWithName:@"ArialHebrew-Bold" size:fontSize];
}
+ (UIFont *)systemFontOfSize:(CGFloat)fontSize
{
return [UIFont fontWithName:@"Arial" size:fontSize];
}
#pragma clang diagnostic pop
@end
如何覆盖系统字体而不影响iOS6.1中的UIStatusBar
?
更多信息:http://cocoamanifest.net/articles/2011/06/clash-of-the-categories.html –
是的,这可能就是我要做的事情。我想知道是否有办法解决这个问题,并保持这种状态。 –