Jump to content

[help] how to make -(id) NULL and -(vois) pass-troughfrom flex to tweak.xm


Go to solution Solved by castix,

10 posts in this topic

Recommended Posts

Posted (edited)

how to write -(id) and -(void) code to make ut NUUL and pas-trouve in tweak.xm

 

http://i.imgur.com/xxAL2ST.jpg

 

http://i.imgur.com/TW2bJ1j.jpg

 

%hook SBAppSwitcherPageViewController

 

-(id)displayLayouts {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k@"] boolValue]){

//what should i do here to make it NULL

}

[prefs release];

return %orig;

}

 

 

 

-(void)handleReachabilityModeDeactivated {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k@"] boolValue]){

//What should i do here to make it pas-trough

}

[prefs release];

return %orig;

}

 

%end

 

%end

Updated by dzcracker
Posted

@castix u r the best Man thank you

 

Im gona make a deb file and post it here

Its not a hack but its a nice tweak

Can i post it here ?

 

@DIDA i need ur permission

Posted

@castix u r the best Man thank you

Im gona make a deb file and post it here

Its not a hack but its a nice tweak

Can i post it here ?

@DIDA i need ur permission

I guess so :p

Posted

Im making a nice tweak it will have springboard multi function

And i wanna share with iOSGods

Castix NSLog("test !")

Is it for void?

 

Nah, that's when you want to give a custom text

Posted

Its worked castix lol

NSLog worked with -(voi)

 

I get -(void)setDisplayLayout:(id)fp8

 

Not -(id)displayLayout and i make it like tht

 

Its work now thanks man

 

 

%hook SBAppSwitcherPageViewController

 

-(void)setDisplayLayouts:(id)fp8 {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k@"] boolValue]){

%orig(fp8);

fp8 = nil;

}

[prefs release];

return %orig;

}

 

-(BOOL)isScrolling {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k@"] boolValue]){

return TRUE;

}

[prefs release];

return %orig;

}

 

-(void)handleReachabilityModeDeactivated {

NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:kPath];

%orig;

if([[prefs objectForKey:@"k@"] boolValue]){

NSLog(@"Test !");

%orig; ;

}

[prefs release];

return %orig;

}

%end

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