Skip to content
Guest Big Announcement

How to hook a boolean with an argument?

Featured Replies

Solved by Rook

  • Replies 34
  • Views 5.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • - (BOOL)canLikeWithTime:(double)fp8 {         return true(9999); }   Instead fp8 you can write what you want. This is just the way I do it (and Apple). The first function variable which is BOOL here

  • #import <UIKit/UIKit.h> %hook LikeTaskDB - (BOOL)canLikeWithTime:(double)fp8 { return TRUE; fp8 = 9999; } %end %hook AppDelegate -(void)applicationDidBecomeActive:(id)argument { U

  • mehdiphone
    mehdiphone

    You guys good teachers

You guys good teachers :D

We do our best :)

If you do return %orig it will return the Boolean by default. @DiDA

 

Sorry if my first post was wrong. Here is the new format

- (BOOL)canLikeWithTime:(double)fp8 {
return true;
fp8 = 9999;
}

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.