Files
GitHawk/Classes/Views/FlexController.m
Ryan Nystrom 21f4a903bc Assign/request event text refactor (#867)
* Upload icon consistent with rest of bar

* Assign and request events use attributed text with linebreaks

* size cell to content
2017-11-06 09:02:10 -05:00

35 lines
803 B
Objective-C

//
// FlexController.m
// Freetime
//
// Created by Ryan Nystrom on 6/23/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
#import "FlexController.h"
#if DEBUG || TESTFLIGHT
#import <FLEX/FLEX.h>
#endif
@implementation FlexController
- (void)configureWindow:(UIWindow *)window {
#if DEBUG || TESTFLIGHT
[FLEXManager sharedManager].simulatorShortcutsEnabled = NO;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTap:)];
tap.numberOfTouchesRequired = 3;
[window addGestureRecognizer:tap];
#endif
}
- (void)onTap:(UITapGestureRecognizer *)recognizer {
#if DEBUG || TESTFLIGHT
if (recognizer.state == UIGestureRecognizerStateRecognized) {
[[FLEXManager sharedManager] showExplorer];
}
#endif
}
@end