Created
March 14, 2013 10:31
-
-
Save jontelang/5160319 to your computer and use it in GitHub Desktop.
asd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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