IOS How to open YouTube application

NSString *stringURL = @"http://www.youtube.com/watch?v=eIbED-knzIA";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url]; 
It also works with this URL (which normally brings 
the Flash video player used by YouTube): 
NSString *stringURL = @"http://www.youtube.com/watch?v=eIbED-knzIA";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];  

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring