center label on iOS 13
This commit is contained in:
4
Tweak.xm
4
Tweak.xm
@ -1,10 +1,9 @@
|
|||||||
@interface SBUILegibilityLabel : UIView
|
@interface SBUILegibilityLabel : UIView
|
||||||
@property (nonatomic,copy) NSString *string;
|
@property (nonatomic,copy) NSString *string;
|
||||||
|
@property (assign,nonatomic) long long textAlignment;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NCNotificationListSectionRevealHintView : UIView
|
@interface NCNotificationListSectionRevealHintView : UIView
|
||||||
//-(void)_updateHintTitle;
|
|
||||||
//-(void)setRevealHintTitle;
|
|
||||||
@property (nonatomic,retain)SBUILegibilityLabel *revealHintTitle;
|
@property (nonatomic,retain)SBUILegibilityLabel *revealHintTitle;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@ -57,6 +56,7 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
|
|||||||
%orig;
|
%orig;
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
self.revealHintTitle.string = customText;
|
self.revealHintTitle.string = customText;
|
||||||
|
self.revealHintTitle.textAlignment = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user