Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created March 14, 2013 10:31
Show Gist options
  • Save jontelang/5160319 to your computer and use it in GitHub Desktop.
Save jontelang/5160319 to your computer and use it in GitHub Desktop.
asd
%hook SBUIController
@interface SBIconController : NSObject
+(id)sharedInstance;
@end
@interface SBIconListView : UIView
@end
@interface SBIconListModel : NSObject
-(id)icons;
@end
+(id)sharedInstance{
id s = %orig;
NSLog(@" - - x x x x x x x x x x xx x x x x x x x x x x x x x x x x x x x x x accessing sharedInstance");
SBIconController *sbic = [objc_getClass("SBIconController") sharedInstance];
NSLog(@"sbic: %@", sbic);
NSMutableArray *arr = MSHookIvar<NSMutableArray *>(sbic, "_rootIconLists");
NSLog(@"arr: %@", arr);
//SBIconListView *ilv = [arr objectAtIndex:0];
//NSLog(@"ivl: %@", ilv);
//SBIconListModel *model = MSHookIvar<SBIconListModel *>(ilv, "_model");
//NSLog(@"model: %@", model);
return s;
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment