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

Java : Variables Declaring

SQL Self JOIN