Return for an argument in iOS -
I am making a cydia tweak using theos and% hook, the methods I am trying to edit Is - (zero) setNumberOfCoins: Finally (float) arg1 I would like to know how to edit the float value and not the previous zero. Thanks!
EDIT: The way to return a float value in general will have to do this
- (float) coin value {return 100; }
But I have to find out how to return the argument
< P> I'm not sure what you are trying to accomplish.
method - (zero) setNumberOfCoins: (float) arg1
assumes a float and does something like this.
For example:
- (zero) setNumberOfCoins: (float) arg1 {float someFloat = arg1 * 2.0f; A float float = Arg 1 * 4.0F; Float and other flat = arg1 * 8.0F; NSLog (@ "Some float value is% F", some float); NSLog (@ "One float value is% F", second float); NSLog (@ "value and other fleet% F", and other flights); }
and to use it:
float number coins = 2; [Self setembarofffor comics: Nimbix];
Output:
Some float values are 4 Others have a value of 8 and another float is 16
Comments
Post a Comment