webview in a tab bar controller
Hello I have a little question.
I have a tab bar controller view made with the UI tool. One of the tab is a web view that I want to show web datas. But I don't figure out how to link my webView outlet with the effective webView that I've inserted in the interface builder.
I have the same problem for TableViews
this is my code
@interface MyNewViewController : UIViewController {
IBOutlet UIWebView *webView;
}
@property (nonatomic, retain) UIWebView *webView;
NSString *urlAddress = @"http://www.google.com";
//Create a URL object.
NSURL *url = NSURL URLWithString:urlAddress;
//URL Requst Object
NSURLRequest *requestObj = NSURLRequest requestWithURL:url;
//Load the request in the UIWebView.
webView loadRequest:requestObj;
Thank you !
|