Created
April 24, 2015 14:34
-
-
Save seaders/a5f4708639db45a5f73c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "UnityAppController.h" | |
| @interface SMSubController : UnityAppController | |
| @end | |
| IMPL_APP_CONTROLLER_SUBCLASS(SMSubController) | |
| @implementation SMSubController | |
| - (BOOL)application:(UIApplication*)application | |
| openURL:(NSURL*)url | |
| sourceApplication:(NSString*)sourceApplication | |
| annotation:(id)annotation | |
| { | |
| BOOL handledBySuper = [super application:application | |
| openURL:url | |
| sourceApplication:sourceApplication | |
| annotation:annotation]; | |
| BOOL iHaveHandled = false; | |
| // should we do this if it's been handledBySuper? | |
| // custom code to check if we've handled | |
| // return iHaveHandled; | |
| // return handledBySuper; | |
| return iHaveHandled || handledBySuper; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment