Can't load a page in a UIWebView
I i'm developing a News App that get the content from a rss feed.
When i click on a TableViewCell I pass a NSDictionary object with the title, link, etc to the next ViewController. In the ViewController I define NSDictionary *item; and I can verify that the values are passed correctly by setting the title of the viewcontroller like this: self.title = [item objectForKey:@"link"]; the title shows the link im trying to open in my UIWebView.

I have the following code:

    - (void)viewDidLoad {
        [super viewDidLoad];
   
     NSString *urlAddress = @"http://certainurl.com"; 
                               //[self.item objectForKey:@"link"]; 
   
     NSURL *baseURL = [[NSURL URLWithString: urlAddress] retain];  
 
     NSURLRequest *request = [NSURLRequest requestWithURL:baseURL];
  
     [self.itemSummary loadRequest:request];
 
     [baseURL release];
}

Now, when I assign the address like this @"http://somesite.com" the UIWebView loads just fine but when i do this: NSString *urlAddress = [self.item objectForKey:@"link"];  it never loads. As I mentioned i checked that the value of [self.item objectForKey:@"link"]; is a valid url since its displaying it in the title of the navigationbar.

What am I doing wrong?


Can't load a page in a UIWebView
===

I i'm developing a News App that get the content from a rss feed.
When i click on a TableViewCell I pass a NSDictionary object with the title, link, etc to the next ViewController. In the ViewController I define NSDictionary *item; and I can verify that the values are passed correctly by setting the title of the viewcontroller like this: self.title = [item objectForKey:@"link"]; the title shows the link im trying to open in my UIWebView.

I have the following code:

    - (void)viewDidLoad {
        [super viewDidLoad];
   
     NSString *urlAddress = @"http://certainurl.com"; 
                               //[self.item objectForKey:@"link"]; 
   
     NSURL *baseURL = [[NSURL URLWithString: urlAddress] retain];  
 
     NSURLRequest *request = [NSURLRequest requestWithURL:baseURL];
  
     [self.itemSummary loadRequest:request];
 
     [baseURL release];
}

Now, when I assign the address like this @"http://somesite.com" the UIWebView loads just fine but when i do this: NSString *urlAddress = [self.item objectForKey:@"link"];  it never loads. As I mentioned i checked that the value of [self.item objectForKey:@"link"]; is a valid url since its displaying it in the title of the navigationbar.

What am I doing wrong?

