Skip to content

Instantly share code, notes, and snippets.

@laiso
Created December 20, 2011 05:43
Show Gist options
  • Save laiso/1500435 to your computer and use it in GitHub Desktop.
Save laiso/1500435 to your computer and use it in GitHub Desktop.
diff --git a/AppDelegate.m b/AppDelegate.m
index 60fd8d5..de8302f 100755
--- a/AppDelegate.m
+++ b/AppDelegate.m
@@ -48,6 +48,8 @@
#import "AppDelegate.h"
#import "MainViewController.h"
+#import <DCIntrospect/DCIntrospect.h>
+
// Note about Info.plist:
//
// If you want the status bar to be hidden at launch use this:
@@ -77,6 +79,14 @@
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
+ UITapGestureRecognizer *defaultGestureRecognizer = [[UITapGestureRecognizer alloc] init];
+ defaultGestureRecognizer.cancelsTouchesInView = NO;
+ defaultGestureRecognizer.delaysTouchesBegan = NO;
+ defaultGestureRecognizer.delaysTouchesEnded = NO;
+ defaultGestureRecognizer.numberOfTapsRequired = 3;
+ defaultGestureRecognizer.numberOfTouchesRequired = 2;
+ [DCIntrospect sharedIntrospector].invokeGestureRecognizer = defaultGestureRecognizer;
+
// To set the status bar as black, use the following:
// application.statusBarStyle = UIStatusBarStyleBlackOpaque;
@@ -87,6 +97,8 @@
// add the navigation controller's view to the window
[window addSubview: navigationController.view];
[window makeKeyAndVisible];
+
+ [[DCIntrospect sharedIntrospector] start];
}
- (void)dealloc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment