Using dlopen in iOS

Issue #133

With dlopen we can make uses of some private frameworks. It will be fun

From iPhone X home button

1
2
3
4
5
6
7
#import <dlfcn.h>

// somewhere in viewDidLoad
dlopen([binaryPath cStringUsingEncoding:NSUTF8StringEncoding], RTLD_NOW);
UIView *const view = [[NSClassFromString(@"SBHomeGrabberView") alloc] init];
[view sizeToFit];
[self.view addSubview:view];

Comments