Jump to content

How to change string in UITableViewLabel?


strejda603

7 posts in this topic

Recommended Posts

Posted

Hey guys,

I would like to change a string ("You are a Pro"), which is NSString property inside UITableViewLabel, to something else (i.e.: "You are NOOB! ;-)") and use it in Tweak.x file. Could someone give me a tip, how to do it?

I've tried to use MSHook function, but I'm very begginer with C, so I have no idea, how to do it right...

Here is the image with address and XREF of cfstring:

spacer.png

Thank you!

Posted

Nsstring is read only A few long tedious way of doing what you want but I’m not sure how to do it in hopper....sooo

im going to assume that hopper has a hex editor since it’s a dissembler you have the offset so find the text in hex & edit it that way.

if there’s no hex byte (plain readable text) on the side then edit the hex string(number sequence)

 

find an online text to hex/hex to text converter and make sure you edit the correct thing & replace it...there you go

Posted
1 hour ago, Kilmnar said:

Nsstring is read only A few long tedious way of doing what you want but I’m not sure how to do it in hopper....sooo

im going to assume that hopper has a hex editor since it’s a dissembler you have the offset so find the text in hex & edit it that way.

if there’s no hex byte (plain readable text) on the side then edit the hex string(number sequence)

 

find an online text to hex/hex to text converter and make sure you edit the correct thing & replace it...there you go

Thank you! And how can I implement it to tweak.x?

Posted
6 minutes ago, Kilmnar said:

In what way? Just saving it?

o_o

save it

No, I mean, what code should I use in my Tweak.x file?

(I have created a tweak with theos and now I want to change this string - if it's possible, not patching binary for it)

P.S.: I have also IDA Pro, so if you know how to do it in IDA, you can tell me :)

Posted

Why don't you hook into the UITableViewLabel where it's being show and then change the string.
Do you know the class and method it's being displayed in? 

Posted

I finally find out how to do it! It maybe isn't "the best" method, but it works... :D

%hook UITableViewLabel /*or class you want to change*/
-(void) setText:(NSString *)arg1 {
    if ([arg1 isEqualToString:@"Original string"]){
    %orig(@"Changed string");
    } else {
    %orig;
    }
}
%end

 

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Gossip Harbor®: Merge & Story v3.67.0 [+2 Jailed Cheats]
      Modded/Hacked App: Gossip Harbor®: Merge & Story By Microfun Limited
      Bundle ID: com.mergegame.icookie
      App Store Link: https://apps.apple.com/us/app/gossip-harbor-merge-story/id1623318294?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Never Decrease)
        • Winner
        • Like
      • 12 replies
    • Gossip Harbor®: Merge & Story v3.67.0 [+2 Cheats]
      Modded/Hacked App: Gossip Harbor®: Merge & Story By Microfun Limited
      Bundle ID: com.mergegame.icookie
      App Store Link: https://apps.apple.com/us/app/gossip-harbor-merge-story/id1623318294?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Never Decrease)
       
        • Haha
        • Winner
      • 3 replies
    • Seaside Escape®: Merge & Story v1.73.0 [+2 Jailed Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
        • Winner
      • 3 replies
    • Seaside Escape®: Merge & Story v1.73.0 [+2 Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
       
        • Winner
      • 2 replies
    • Night Valley - Tower Defense v1.0.11 [+2 Jailed Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
      • 4 replies
    • Night Valley - Tower Defense v1.0.11 [+2 Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
        • Agree
        • Winner
        • Like
      • 2 replies
    • Disney Solitaire v1.2.3 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 14 replies
    • Disney Solitaire v1.2.3 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 18 replies
    • Domino Dreams™ v1.42.3 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
        • Winner
        • Like
      • 10 replies
    • Domino Dreams™ v1.42.3 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Like
      • 17 replies
    • Pop Island v1.0.5 [ +1 Cheats ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


        • Agree
        • Like
      • 10 replies
    • Pop Island v1.0.5 [ +1 Jailed ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


        • Winner
        • Like
      • 9 replies
×
  • 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