Skip to content

Instantly share code, notes, and snippets.

@naan
Created July 27, 2010 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naan/492726 to your computer and use it in GitHub Desktop.
Save naan/492726 to your computer and use it in GitHub Desktop.
//
// backward compatibility of handling URL
//
NSString* osVersion = [[UIDevice currentDevice] systemVersion];
if ([osVersion compare:@"3.9" options:NSNumericSearch] == NSOrderedAscending) {
NSURL *url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
if (url) {
[self performSelector:@selector(handleURL:) withObject:url afterDelay:.1];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment