Nothing Special   »   [go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

@thoretton-edwin
Created September 19, 2014 14:24
Show Gist options
  • Save thoretton-edwin/c2d854f76fc7276bbc6b to your computer and use it in GitHub Desktop.
Save thoretton-edwin/c2d854f76fc7276bbc6b to your computer and use it in GitHub Desktop.
check and launch linkedIn app
BOOL linkedInIsInstalled =
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"linkedin:#profile/9999"]];
if(linkedInIsInstalled)
{
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"linkedin:#profile/9999"]];
}
else
{
NSLog(@"no likedInApplication installed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment