Jump to content

What's the proper way?


Go to solution Solved by Amuyea,

6 posts in this topic

Recommended Posts

Posted

Good afternoon guys, can someone figured out what the problem is? It keeps giving me error

 

here is the unit: -(BOOL) tabletView:(id) shouldHighlightRowAtIndexPath:(id)

 

 

%hook UserController

-(BOOL) tabletView:(id) shouldHighligthRowAtIndexPath:(id) arg1 arg2 {

return false;

(id)arg1 = ;

(id)arg2 = ;

%orig(arg1,arg2);

}

%end

 

If I remove the arg, the patch will compile successful but the tweak will not take effect.

  • Solution
Posted (edited)


%hook UserController

-(BOOL)tabletView:(id)arg1 shouldHighligthRowAtIndexPath:(id)arg2 {

return FALSE;

arg1 = ;

arg2 = ;

%orig(arg1,arg2);

}

%end

Updated by Amuyea
Posted (edited)

 

%hook UserController

-(BOOL)tabletView:(id)arg1 shouldHighligthRowAtIndexPath:(id)arg2 {

return FALSE;

arg1 = ;

arg2 = ;

%orig(arg1,arg2);

}

%end

 

Thanks, I added (NULL) and it compiled successful, like this

 

%hook UserController

-(BOOL) tabletView:(id)arg1 shouldHighligthRowAtIndexPath:(id)arg2 {

return false;

arg1 = (NULL);

arg2 = (NULL);

%orig(arg1,arg2);

}

%end

 

One problem I'm having right now is that the tweak is not taking effect. I'm trying to tweak settings. So I used "com.apple.preferences" as the bundle. What was I missing?

 

[/code]

 

 

Thanks, any suggestions? The tweak is functionless

Updated by KonpresoR

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