title: Open URL failure in Safari
body: <p>I created my application. I need to open URL in iPhone, safari view directly.</p>
  
  <p>My code as follows:</p>
  
  <pre><code>        NSString *email = [NSString stringWithFormat:@"http://itunes.apple.com/us/album/music/id186152317?i=186153149&amp;uo=4"];
           email = [email stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
           NSURL *url = [NSURL URLWithString:email];
           if (![[UIApplication sharedApplication] openURL:url])
           NSLog(@"%@%@",@"Failed to open url:",[url description]);
           [super viewDidLoad];
  </code></pre>
  
  <p>But my problem is, the Safari view is opened. But the URL is not opened. It is showing error. The error is</p>
  
  <blockquote>
    <p>Cannot Open Page safari cannot open the page because the address is invalid</p>
  </blockquote>
  
  <p>But the URL is opened in browser.</p>
  
  <p>Does anyone know the solution, to open this URL in Safari in iPhone using Objective C?</p>