Skip to content
Guest Big Announcement

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

Featured Replies

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?
 

Solved by ProCydia

  • Replies 24
  • Views 4.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Thank you, your code worked. What i didn't do last time was put the actual method after arg1, arg2,etc... as in last time i did (BOOL)arg1:(id)arg2, and didn't add the actual method aid afterwards, as

- (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

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.