Jump to content

[Obj-C] Does this look like it makes any sense


Go to solution Solved by Guest,

4 posts in this topic

Recommended Posts

Posted (edited)

Haven't tested this, I'm not sure if I'm fully understanding the code I wrote but I tried explaining what I do know!

Please feedback helps me a lot!

Thanks!

 

//Text Color Per Username (NOT TESTED)


//'Reaching' = Hooking, kind of, we are pulling functions from other classes
//so we can achieve what we are trying to do (to my understanding)

//'Reaching' into the other classes so they work with HybridSmileyLabel
//even though they aren't in the class 'HybridSmileyLabel'
@interface HybridSmileyLabel : NSObject

//From the class XMPPJID
- (XMPPJID *)userJid;

//From the class KikUser
- (KikUser *)username;
- (KikUser *)user;

//Closing the interface with an @end (to my understanding it is like the %end, but I may be wrong)
@end


//Hooking into the class that deals with the message color
%hook HybridSmileyLabel

//This is the function that deals with the specific text color
//We put UIColor * as the id because we are dealing with color
//The word after UIColor * can be anything, in this case I put color, but it could be arg1, eric, niro, etc
-(void)setTextColor:(UIColor *)color {
	
	//'Reaching' into the KikUser Class and is searching if the username is nooneloves me (niro)
	if([self.user.username isEqualToString:@"noonelovesme"])
		
		//If it is equal it sets the color to a nice blue
		color = [UIColor colorWithRed:0.43 green:0.62 blue:0.92 alpha:1.0];
	
	//Instead of 'reaching' into KikUser, it is 'Reaching' into XMPPJID to see if the jid is equal to yours (EricLegend)
	if([self.userJid.user isEqualToString:@"[email protected]"])
		
		//If it is equal it sets the color to a dark red
		color =	[UIColor colorWithRed:0.60 green:0.00 blue:0.00 alpha:1.0];
	
	//Returns all other possibilities to the original color
	return %orig;
}

//Closing the hook and all the modifications
%end
Updated by niro
  • Solution
Posted

Haven't tested this, I'm not sure if I'm fully understanding the code I wrote but I tried explaining what I do know!

Please feedback helps me a lot!

Thanks!

//Text Color Per Username (NOT TESTED)


//'Reaching' = Hooking, kind of, we are pulling functions from other classes
//so we can achieve what we are trying to do (to my understanding)

//'Reaching' into the other classes so they work with HybridSmileyLabel
//even though they aren't in the class 'HybridSmileyLabel'
@interface HybridSmileyLabel : NSObject

//From the class XMPPJID
- (XMPPJID *)userJid;

//From the class KikUser
- (KikUser *)username;
- (KikUser *)user;

//Closing the interface with an @end (to my understanding it is like the %end, but I may be wrong)
@end


//Hooking into the class that deals with the message color
%hook HybridSmileyLabel

//This is the function that deals with the specific text color
//We put UIColor * as the id because we are dealing with color
//The word after UIColor * can be anything, in this case I put color, but it could be arg1, eric, niro, etc
-(void)setTextColor:(UIColor *)color {
	
	//'Reaching' into the KikUser Class and is searching if the username is nooneloves me (niro)
	if([self.user.username isEqualToString:@"noonelovesme"])
		
		//If it is equal it sets the color to a nice blue
		color = [UIColor colorWithRed:0.43 green:0.62 blue:0.92 alpha:1.0];
	
	//Instead of 'reaching' into KikUser, it is 'Reaching' into XMPPJID to see if the jid is equal to yours (EricLegend)
	if([self.userJid.user isEqualToString:@"[email protected]"])
		
		//If it is equal it sets the color to a dark red
		color =	[UIColor colorWithRed:0.60 green:0.00 blue:0.00 alpha:1.0];
	
	//Returns all other possibilities to the original color
	return %orig;
}

//Closing the hook and all the modifications
%end

Use MSHookIvar to hook the JID or the username from another class, and then put that into a global variable so all methods can use it. Then in the setTextColor, check for that username and then set the color accordingly

 

That's what I would do

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
  • Our picks

    • Kingdom Rush Battles: TD Game v1.3.2 +4 Jailed Cheats [ No Tower Cost ]
      Modded/Hacked App: Kingdom Rush Battles: TD Game By Ironhide S.A.
      Bundle ID: com.ironhidegames.kingdomrush.mp
      App Store Link: https://apps.apple.com/ph/app/kingdom-rush-battles-td-game/id6746510979?uo=4

       
       

      🤩 Hack Features

      - Dumb Enemy -> Disables your enemy from buying towers.
      - No Tower Build Cost -> Use with Dumb Enemy.
      - No Tower Upgrade Cost -> Use with Dumb Enemy.
      - No Tower Skill Upgrade Cost -> Use with Dumb Enemy.
        • Informative
        • Winner
        • Like
      • 38 replies
    • Hunt Royale: Action RPG Battle v3.22.0 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
        • Informative
        • Agree
        • Haha
        • Thanks
        • Like
      • 222 replies
    • Idle Zombie Miner: Gold Tycoon v2.301.2480 +1++ Jailed Cheat [ Currencies ]
      Modded/Hacked App: Idle Zombie Miner: Gold Tycoon By VISTREX LIMITED
      Bundle ID: com.zombie.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-zombie-miner-gold-tycoon/id6471983323?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Zombie Miner: Gold Tycoon v2.53.1001 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 140 replies
    • OnceWorld v0.9.9 +2 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: OnceWorld By PONIX LLC
      Bundle ID: work.ponix.onceworld
      App Store Link: https://apps.apple.com/us/app/onceworld/id6753948618?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
        • Informative
        • Thanks
        • Like
      • 14 replies
    • Harry Potter: Puzzles & Spells v104.0.336 +1 Mod [ Freeze Moves ]
      Mod APK Game Name: Harry Potter: Puzzles & Spells
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.zynga.pottermatch&hl=en

       

      🤩 Hack Features

      - Freeze Moves -> Enable when you have 1 move left to avoid puzzle issues.
      • 0 replies
    • Gossip Harbor®: Merge & Story v3.80.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)
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 63 replies
    • Gossip Harbor®: Merge & Story v3.80.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)
       
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 26 replies
    • Flambé: Merge and Cook v1.32.1 [+2 Jailed Cheats]
      Modded/Hacked App: Flambé: Merge and Cook By Microfun Limited
      Bundle ID: com.mf.cola
      App Store Link: https://apps.apple.com/us/app/flamb%C3%A9-merge-and-cook/id6618142292?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Gold, Gem and Skip Ticket)
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Flambé: Merge and Cook v1.32.1 [+2 Cheats]
      Modded/Hacked App: Flambé: Merge and Cook By Microfun Limited
      Bundle ID: com.mf.cola
      App Store Link: https://apps.apple.com/us/app/flamb%C3%A9-merge-and-cook/id6618142292?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Gold, Gem and Skip Ticket)
       
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 22 replies
    • Omega Royale - Tower Defense v1.12.0 [+2 Jailed Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4

       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Thanks
        • Winner
        • Like
      • 56 replies
    • Omega Royale - Tower Defense v1.12.0 [+2 Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4


       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 43 replies
    • Shotgun Club v1.14.5 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Shotgun Club By BoomBit, Inc.
      Bundle ID: com.shooting.club
      App Store Link: https://apps.apple.com/us/app/shotgun-club/id1634009862?uo=4
      🤩 Hack Features

      - Club MemberShip Card Active
      - Club MemberShip Card / Claim Unlimited
      - ADS NO / Rewards Free
      - Free Spin Max
      - Emote Unlocked
      - Free Chest Unlimited
      - Free Chest Ready
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
        • Winner
      • 1 reply
×
  • 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