Code: %hook Header1 -The header you "hook" on to - (int)hackOne { -The function youre hacking return 9999; -The new value of the function you are hacking } - You are done hacking this function - (BOOL)hackTwo { return true; } - (float)hackThree { return 9999.0f; } %end %end - This means that you are done hacking functions in this header %hook Header2 - (int)hackFour { return 9999; } - (void)HackFive:(int)hackFive { hackFive=9999; %orig (hackFive) } %end

Code: - (void)ItemCost:(id)Cost { Cost=[NSNumber numberWithInt:0]; }

Code: %hook yourClass -(void)yourMethod:(id)exampleID {UIAlertView*className =[[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"exampleID is a %@",[exampleID class]]delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:nil]; [className show]; [className release]; %orig; } %end

Code: tweaknamehere_FRAMEWORKS =UIKit

Code: su alpine cd /var/mobile/(Tweak here;all lowercase)

Code: make package

Code: Here's final result: - (void)ItemCost:(id)Cost { Cost=[NSNumber numberWithInt:0]; }