mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-03-30 17:13:47 +08:00
* Upload icon consistent with rest of bar * Assign and request events use attributed text with linebreaks * size cell to content
35 lines
803 B
Objective-C
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
|