Jump to content

return void function


Go to solution Solved by castix,

12 posts in this topic

Recommended Posts

Posted

i will return void function as Bool and as id

i try it but failed :(

-(void)example :(bool) [

    return true;
{

 

and for id

-(void)example :(id) [

    %orig test  //  will return this function as a string (test)
{

 

 

  • Solution
Posted


- (void)example:(BOOL)fp8 {

     return %orig(true);

}

 

- (void)example:(id)fp8 {

    NSLog(@"Test !");

    %orig;

}

Posted

Hi I'm new here

How to fly without jetpack?Pls answer

Jump off your roof without a jetpack an you'll fly for a few seconds until you hit the ground. :3

Posted

Ok is that working?

I don't think so

Did you try it? Lol

Posted
- (void)example:(BOOL)fp8 {
     return %orig(true);
}

- (void)example:(id)fp8 {
    NSLog(@"Test !");
    %orig;
}

thank you but why i must use space & ! symbol (@"Test !")

Posted

thank you but why i must use space & ! symbol (@"Test !")

It's part of the test, it doesn't have to look like that exactly.

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
×
  • 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