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 –
是的,這可能就是我要做的事情。我想知道是否有辦法解決這個問題,並保持這種狀態。 –