Open URL Problem in safari
<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 opend. 
It showing error, 
The error is
That "Cannot Open Page safari cannot open the page because the address is invalid "
But the url is opened in browser.</p>

<p>If anyone knows the solution, to open this url in safari in iphone using objective c, please help me.</p>

<p>Thanks...</p>
