Check if youtube app is installed

ios, iphone

Solution

Sure:

UIApplication *uiApp = [UIApplication sharedApplication];
BOOL ytAppInstalled = [uiApp canOpenURL:[NSURL URLWithString:@"youtube://foo"]];

Problem

Is it possible to check whether or not an iOS user has the youtube app installed? I want to be able to do something different with a youtube link if they don't have the youtube app. Thanks

Original source