In the first step you have your function method which is
- (void)vungleViewDidDisappear:(id)fp8 willShowProductView:(BOOL)fp12
See how I already added fp8 and fp12 after the argument type? You can write there anything you want instead fp8 etc. Just note that you can't use the same name more than once in a method. That's why I've named it fp12 and then fp16, fp20 etc...
So let's have a look what you want to hack here. Like I said, changing id doesn't work with NSNumber or NSArray however as you have already seen it in custom alertviews, you can use NSString for it if you are 100% sure what the id does in the game. So what's left is the last boolean. Since we named it fp12 here in this example it also has the same name if you want to return it so always keep it in mind.
- (void)vungleViewDidDisappear:(id)fp8 willShowProductView:(BOOL)fp12 {
return %orig(fp8, fp12);
}
This is the default return if we wouldn't change anything but you can clearly see here how the function method is built. We have our %orig for the void, fp8 for the id and also our boolean fp12. As you guessed right, the arguments are indeed in brackets. What I will show you now does not fit to that term you know here. We are going to assign fp12 to a custom value.
- (void)vungleViewDidDisappear:(id)fp8 willShowProductView:(BOOL)fp12 {
fp12 = true;
return %orig(fp8, fp12);
}
Now we set the value of fp12 (BOOl) to true the first time. You can continue like this depending on the argument count:
fp8 =
fp12 =
fp16 =
fp20 =
...
You can also hack it your way
- (void)vungleViewDidDisappear:(id)fp8 willShowProductView:(BOOL)fp12 {
return %orig(fp8, true);
}
Please note that this way leads to more mismatches within the arguments so I recommend you doing it the first way. A common error would be ".. is not a function pointer ~ return 999(true, 999). The two integers would conflict with each other because iOS thinks you are giving an address.
You can do whatever you want, it's up to you
According to what I said above it is
- (BOOL)hasDailyCapReachedForProvider:(id)fp8 zone:(id)fp12 {
return true;
}
If you don't hack the arguments, ignore them.