Created
September 19, 2014 14:24
-
-
Save thoretton-edwin/c2d854f76fc7276bbc6b to your computer and use it in GitHub Desktop.
check and launch linkedIn app
This file contains 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
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