title: How can I open the link on an application?
body: <p>I added a code for Xcode from the internet.</p>
  
  <p>This one:</p>
  
  <pre><code>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com"]];
  </code></pre>
  
  <p>It took me to www.youtube.com on the Safari browser, what if I have youtube application? how can it open that from the application in my iPhone?</p>
  
  <p>p.s I’m a newbie</p>