Jump to content

I need help with this method im trying to use on my tweak


Go to solution Solved by ProCydia,

25 posts in this topic

Recommended Posts

Posted

Hey guys, im having trouble with this method im trying to use on my tweak.

 

Im not too familiar with modifying multiple arguments of a method.

 

Here is the method: 

 
- (void)postFollowResult:(BOOL)aid:(id)followID:(id)error:(id)argument {
 
        aid = true;
 
}
 
%end
 
Okay, I need to make the (BOOL) Statement true, so i tried to do "aid = true;" but that did not work. It seems to not have made it true for some reason.
 
I first created this hack in Flex, and it worked flawlessly, but for some reason the exact same coding isn't working for my tweak.
 
Can someone please help me out with this method plz?
 
Posted

I tried that, still didnt work.

 

Didnt work D:

You did replace the other part with yours right? :tehe:

:beerchug:

Posted (edited)
- (void)postFollowResult:(BOOL)aid:(id)followID:(id)error:(id)argument {
 
        aid = true;
 
}
 
%end
 
to

- (void)postFollowResult:(BOOL)aid:(id)followID:(id)error:(id)argument {
aid = TRUE;

%orig(followID, error, argument);

}

Right? @@DiDA

Updated by Amuyea
Posted

Think i might have got it to work, one sec while i test.

Nope, didnt fix my problem D:

ow, did you hook the class name?

Posted

You did replace the other part with yours right? :tehe:

:beerchug:

 

In flex my patch has "pass-through" as the result of stuff. How can i do that with a tweak? I think that might be the problem.

ow, did you hook the class name?

 

Yes i did.

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