YouTube

youtube

Application homepage: http://www.youtube.com
iTunes link: https://itunes.apple.com/en/app/youtube/id544007664
HTML Link example: <a href="youtube:dQw4w9WgXcQ">Youtube Video</a>
Native application URL string example:
Extended example:
Tags:

    UIApplication *uapp = [UIApplication sharedApplication];

    NSURL *ur = [NSURL URLWithString:@"youtube:dQw4w9WgXcQ"];

    if ([uapp canOpenURL:ur]) {

     [uapp openURL:ur];

    } else {

    //Youtube app is not installed, open in safari instead

     [uapp openURL:[NSURL URLWithString:@"http://m.youtube.com/watch?v=dQw4w9WgXcQ"]];

  }

    UIApplication *uapp = [UIApplication sharedApplication];
    NSURL *ur = [NSURL URLWithString:@"youtube:dQw4w9WgXcQ"];
    if ([uapp canOpenURL:ur]) {
     [uapp openURL:ur];
    } else {
    //Youtube app is not installed, open in safari instead
     [uapp openURL:[NSURL URLWithString:@"http://m.youtube.com/watch?v=dQw4w9WgXcQ"]]
    }