Skip to content

Instantly share code, notes, and snippets.

@shashankpali
Last active March 23, 2018 10:32
Show Gist options
  • Save shashankpali/9feb64778712c31e293e83e7f936c284 to your computer and use it in GitHub Desktop.
Save shashankpali/9feb64778712c31e293e83e7f936c284 to your computer and use it in GitHub Desktop.
NSURL *appURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@://", yourAppScheme]];
NSString *className = @"UIApplication";
if ( NSClassFromString( className ) )
{
id object = [ NSClassFromString( className ) performSelector: @selector( sharedApplication ) ];
[ object performSelector: @selector( openURL: ) withObject:appURL];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment