Here's my tweak.xm, I need to return the arg 1 to original action because it is mixing up with the original arg 2 value. Thanks!
%hook PromoteViewController
-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end
%hook PromoteViewController
-(void)goBuyViews:(int) numbercoins:(int)arg2 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Free Unlimited Views + Likes Hack!" message:@"Enjoy your free unlimited Views and Likes! - AUSSIE G4M3R" delegate:nil cancelButtonTitle:@"Thanks AUSSIE!" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
Current question: I basically want a working UIAlertView when my hack is used. There is a mistake near the end 'delegate' that's probably why the UIAlertView wasn't working. Let me know if I did everything correctly in the second UIAlertView part.
Thanks!