This code works correctly. It loads the google.com in UIWebVIew.
But not this one. How can I fix this. I dont understand.
Code:
NSLog(aBook.title); //output is :Yahoo
NSLog(aBook.author); //output is : http://www.yahoo.com
NSString *path = [[B]NSString stringWithFormat:@"http://www.google.com"[/B]];
NSURL *url = [NSURL URLWithString:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:request];
But not this one. How can I fix this. I dont understand.
Code:
NSLog(aBook.title); //output is :Yahoo
NSLog(aBook.author); //output is : http://www.yahoo.com
NSString *path = [[B]NSString stringWithFormat:@"%@",aBook.author[/B]];
NSURL *url = [NSURL URLWithString:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:request];