Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface ASDisplayNode : NSObject <UIAccessibilityIdentification>
- @property ASDisplayNode *supernode;
- @end
- @interface ASTextNode : ASDisplayNode
- @property NSAttributedString *attributedText;
- @end
- %hook ASTextNode
- - (void)didLoad {
- %orig;
- if ([self.supernode.accessibilityIdentifier isEqualToString:@"eml.timestamp"])
- self.attributedText = [[NSMutableAttributedString alloc]
- initWithString:@"Hello World!"
- attributes:@{
- NSForegroundColorAttributeName : [UIColor whiteColor],
- NSFontAttributeName : [UIFont systemFontOfSize:14]
- }];
- }
- %end
- // https://www.reddit.com/r/jailbreakdevelopers/comments/tnu8dc/question_i_need_help_creating_a_youtube_tweak/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement