|
|
|
|
|
|
|
|
@interface NCLookHeaderContentView |
|
|
@interface NCLookHeaderContentView |
|
|
-(void)_updateDateLabelFontForShortLook; |
|
|
-(void)_updateDateLabelFontForShortLook; |
|
|
@end |
|
|
@end |
|
|
//IOS 11 & 12 |
|
|
|
|
|
|
|
|
//IOS 11 & 12 And Above |
|
|
@interface BSUIRelativeDateLabel |
|
|
@interface BSUIRelativeDateLabel |
|
|
@property (assign,nonatomic) NSString *text; |
|
|
@property (assign,nonatomic) NSString *text; |
|
|
-(void)sizeToFit; |
|
|
-(void)sizeToFit; |
|
|
|
|
|
|
|
|
@interface MTPlatterHeaderContentView |
|
|
@interface MTPlatterHeaderContentView |
|
|
-(void)_updateTextAttributesForDateLabel; |
|
|
-(void)_updateTextAttributesForDateLabel; |
|
|
@end |
|
|
@end |
|
|
//IOS 12 |
|
|
|
|
|
|
|
|
//IOS 12 And Above |
|
|
@interface PLPlatterHeaderContentView |
|
|
@interface PLPlatterHeaderContentView |
|
|
-(void)_updateTextAttributesForDateLabel; |
|
|
-(void)_updateTextAttributesForDateLabel; |
|
|
@end |
|
|
@end |
|
|
|
|
|
|
|
|
%end |
|
|
%end |
|
|
%end |
|
|
%end |
|
|
|
|
|
|
|
|
%group iOS12 |
|
|
|
|
|
|
|
|
%group iOS12AndAbove |
|
|
%hook PLPlatterHeaderContentView |
|
|
%hook PLPlatterHeaderContentView |
|
|
-(void)_updateTextAttributesForDateLabel{ |
|
|
-(void)_updateTextAttributesForDateLabel{ |
|
|
%orig; |
|
|
%orig; |
|
|
|
|
|
|
|
|
%init(iOS10); |
|
|
%init(iOS10); |
|
|
} else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 12.0) { |
|
|
} else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 12.0) { |
|
|
%init(iOS11); |
|
|
%init(iOS11); |
|
|
}else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 12.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 13.0) { |
|
|
|
|
|
%init(iOS12); |
|
|
|
|
|
|
|
|
}else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 12.0) { |
|
|
|
|
|
%init(iOS12AndAbove); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |