Hi,
I have created an app that loads 4 html files (local) with a tabbar, so when i click the first tabbaritem it will load first.html and so on (till the fourth tab and fourth.html).
My problem is that when i startup the app it loads all the UIWebViews (so first.html till fourth.html) at the same time, i would want to load the UIWebView when i click on the tab, how do i do that?
Some of my code (firstviewcontroller.m):
Code:
@implementation FirstViewController
- (void)awakeFromNib
{
[first setBackgroundColor:[UIColor clearColor]];
NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"first" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[first loadRequest:requestObj];
}
gr. Erik