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

Everyone starts out with instagram mods :p And @@DiDA you don't need

#include <UIKit/UIKit.h>

Updated by Guest

You do sometimes. :3 Depending on your project. :)

Oh ok igotchu :thumbsup:

@mehdiphone lol "swag hack" :rofl:


@mehdiphone do you have a control file in your project folder?

The hack unlocks swag,

Jk

I don't know what is it..

You should have a file next to your tweak.xm named "control" (no extension)

 

If you don't, create it and add this:

Package: com.replace.me
Name: Name That Will Appear On Cydia
Depends: mobilesubstrate
Version: 1.0.0
Architecture: iphoneos-arm
Description: An awesome MobileSubstrate tweak from iOSGods.com!
Maintainer: DiDA
Author: DiDA
Section: Tweaks

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.