FLEX (Flipboard Explorer) is a set of in-app debugging and exploration tools for iOS development. When presented, FLEX shows a toolbar that lives in a window above your application. From this toolbar, you can view and modify nearly every piece of state in your running application.
Installation via Cocoapods
pod 'FLEX', '~> 1.1'
Setup in project: AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
.....
[self addFlexTapGestureIfNeed];
.....
}
#pragma mark -
#pragma mark -------------------- About Tweak & FLEX ---------------------
- (void)addFlexTapGestureIfNeed{
#ifdef DEBUG
UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTapFlex:)];
tapGR.numberOfTapsRequired = 2;
tapGR.numberOfTouchesRequired = 2;
[self.window addGestureRecognizer:tapGR];
#endif
}
- (void)didTapFlex:(UITapGestureRecognizer*)tapGR
{
if (tapGR.state == UIGestureRecognizerStateRecognized) {
#if DEBUG
[[FLEXManager sharedManager] showExplorer];
#endif
}
}