ios - iOsOpenDev SpringBoard -
can tell me how hook springboard method, appslider method iosopendev (ios 7.1). don't know framework have take.
i have tryed nothing appeared on console:
import uikit/uikit.h import springboard/springboard.h import "captainhook.h" chdeclareclass(sbappsliderscrollingviewcontroller); choptimizedmethod(0, self, void, sbappsliderscrollingviewcontroller, loadview) { chsuper(0, sbappsliderscrollingviewcontroller, loadview); nslog(@"ciccia!"); } chconstructor { @autoreleasepool { chloadlateclass(sbappsliderscrollingviewcontroller); chhook(0, sbappsliderscrollingviewcontroller, loadview); } }
why need
chloadlateclass(sbappsliderscrollingviewcontroller); //for class available later
you can write
chloadclass(sbappsliderscrollingviewcontroller);//for class available ;)
and can using logos.. here example...
#import <uikit/uikit.h> %hook sbappslidercontroller - (void)loadview { %orig; nslog (@"****appswitcher appeared"); uialertview *testalert = [[uialertview alloc] initwithtitle:@"test" message:@"app switcher appeared." delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil]; [testalert show]; [testalert release]; //for non-arc } %end
note: right class sbappslidercontroller if need when appswitcher appear ;)
Comments
Post a Comment