UIWebView doesn't load some link
        Posted  
        
            by 
                elos
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by elos
        
        
        
        Published on 2011-03-03T23:15:40Z
        Indexed on 
            2011/03/03
            23:25 UTC
        
        
        Read the original article
        Hit count: 302
        
hello I'm trying to write an rss feed viewer for my iPhone. In my DetailView I have a UIWebView where I want to display specific link retrieved with the rss item.:
NSString* url = [data objectForKey:@"link"];
NSString *encodedUrl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding ]; 
NSLog(@"Selected link:%@",url);
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:encodedUrl]];
[itemWebpage loadRequest:request];
[request release];
now,if the retrieved link is something like
www.shazaam.com
it works. But as soon as the link is something like:
http://www.shazam.com/music/web/track?id=41970148"
it doesn't. I suppose it's because of the parameter...but how can I fix the problem????
thanks a lot!
elos
© Stack Overflow or respective owner