mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Continue button for notched devices
This commit is contained in:
parent
296112b04b
commit
7170d2681f
1 changed files with 9 additions and 1 deletions
10
Tweak.xm
10
Tweak.xm
|
|
@ -37,6 +37,7 @@ static inline NSString *LOC(NSString *key) {
|
|||
}
|
||||
}
|
||||
%end
|
||||
|
||||
// Replace (translate) old text to the new one
|
||||
%hook UILabel
|
||||
- (void)setText:(NSString *)text {
|
||||
|
|
@ -105,7 +106,14 @@ static inline NSString *LOC(NSString *key) {
|
|||
}
|
||||
%end
|
||||
|
||||
// WelcomeVC stuff
|
||||
// Continue button (mostly for notched devices)
|
||||
%hook uYouWelcome
|
||||
- (void)setButtonTitle:(id)arg1 {
|
||||
%orig(arg1 = LOC(@"Continue"));
|
||||
}
|
||||
%end
|
||||
|
||||
// Follow me on twitter
|
||||
%hook OBPrivacyLinkButton
|
||||
- (id)initWithCaption:(id)arg1 buttonText:(id)arg2 image:(id)arg3 imageSize:(CGSize)arg4 useLargeIcon:(BOOL)arg5 {
|
||||
return %orig(LOC(@"FollowMe"), arg2, arg3, arg4, arg5);
|
||||
|
|
|
|||
Loading…
Reference in a new issue