alright so here's a screenshot:
I started out with a tab based application, then i added two view controllers to the tab bar, and then I loaded two seperate xibs in them.
The screenshot i attached has first a view, then an image view (with the background), then the buttons, the nav bar at the top, and then finally the UIWebView. My question is that, I have this for my action:
And then i connected the action to the button that i want to bring the UIWebView to. What I'm having trouble with is, that i was following this tutorial:http://iphonedevcentral.org/tutorials.php?page=ViewTutorial&id=34&uid=59068116 but i cant connect the delegate outlet to the UIWebView.
Anyway, back to my point, so do i select the UIWebView, then go to the info part and make its class: XXX, then make the actions in there, and then connect the actions to the appropriate buttons, and then in the code do i just change WEBVIEW with XXX??
For the view i have in the screenshot, i wrote class files, and now have MainView .h and .m, so that's where the actions go, correct?
Do I need to do any thing with the AppDelegate? Because the tut kept referring to it.
Are any @class, @implementation, #include's needed?
I started out with a tab based application, then i added two view controllers to the tab bar, and then I loaded two seperate xibs in them.
The screenshot i attached has first a view, then an image view (with the background), then the buttons, the nav bar at the top, and then finally the UIWebView. My question is that, I have this for my action:
Code:
- (IBAction)loadBook {
WEBVIEW.scalesPageToFit = YES;
[mainView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/books?hl=en"]]];
}
And then i connected the action to the button that i want to bring the UIWebView to. What I'm having trouble with is, that i was following this tutorial:http://iphonedevcentral.org/tutorials.php?page=ViewTutorial&id=34&uid=59068116 but i cant connect the delegate outlet to the UIWebView.
Anyway, back to my point, so do i select the UIWebView, then go to the info part and make its class: XXX, then make the actions in there, and then connect the actions to the appropriate buttons, and then in the code do i just change WEBVIEW with XXX??
For the view i have in the screenshot, i wrote class files, and now have MainView .h and .m, so that's where the actions go, correct?
Do I need to do any thing with the AppDelegate? Because the tut kept referring to it.
Are any @class, @implementation, #include's needed?