Jump to content

4 posts in this topic

Recommended Posts

Posted

Hello 👋  

First of all, I made small tweaks with theos, some cracks to make apps premium with your tutorials (using class dumping etc.) , and this is really great! 

But I’ve a problem with FlexALL. I want to change the NSString text permanently and compile it to deb file. How can I hook the right class and write the tweak? I can use all the SDKS between iOS 9.3 to 13.7 Thanks in advance! 🙂

 

 

EYSa3RQ


 

VHdNY4y

 

Posted

You can achieve it by using this in your Tweak.xm:

%hook UITableViewLabel
-(void) setText:(NSString *)arg1 {
    if ([arg1 isEqualToString:@"Reddit Premium"]){
        %orig(@"Some text");
    } else {
        %orig;
    }
}
%end

Another option is to use this:

@interface SomeClass
@property (nonatomic, copy, readwrite) NSString *title;
@end

%hook SomeClass
-(NSString*) title {
    return @"Some text";
}
%end

But I'm not sure, if this second option gonna work for "UITableViewLabel"...

Another problem is with localized and attributed strings.. But you can try it 😉

  • Like 1
  • Winner 2
Posted (edited)
On 1/24/2021 at 4:06 AM, strejda603 said:

You can achieve it by using this in your Tweak.xm:

%hook UITableViewLabel
-(void) setText:(NSString *)arg1 {
    if ([arg1 isEqualToString:@"Reddit Premium"]){
        %orig(@"Some text");
    } else {
        %orig;
    }
}
%end

Another option is to use this:

@interface SomeClass
@property (nonatomic, copy, readwrite) NSString *title;
@end

%hook SomeClass
-(NSString*) title {
    return @"Some text";
}
%end

But I'm not sure, if this second option gonna work for "UITableViewLabel"...

Another problem is with localized and attributed strings.. But you can try it 😉

Hi, can you tell please how to hook non-translatable tweaks text and bind strings file with translation like example below? Translated uYou tweak, but don't know how to make it display russian for Russian localization on iOS.

"Downloading" = "Загрузки";
"All" = "Все";
"Video" = "Видео";
"Audio" = "Аудио";

EDIT: Find out how to do it via: https://github.com/danpashin/CUILocalizer

Updated by dayanch96
Posted
On 12/1/2020 at 8:33 PM, Crystal Azerica said:

Hello 👋  

First of all, I made small tweaks with theos, some cracks to make apps premium with your tutorials (using class dumping etc.) , and this is really great! 

But I’ve a problem with FlexALL. I want to change the NSString text permanently and compile it to deb file. How can I hook the right class and write the tweak? I can use all the SDKS between iOS 9.3 to 13.7 Thanks in advance! 🙂

 

 

EYSa3RQ


 

VHdNY4y

 

You can try hooking onto something using logos hooks to change the text, you just have to know how to do those hooks, tghe tutorials section should have a few of these tutorials on hooks and mshooks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines