-(void)viewWillAppear:(BOOL)animated
{
NSLog(@"willAppear");
[[self navigationItem] setTitle:[selectedPerson professorLName]];
url = [[NSURL alloc] initWithString:[selectedPerson departmentWebsite]];
NSLog(@"%@", url);
req = [[NSURLRequest alloc] initWithURL:url];
[webView loadRequest:req];
webView.scalesPageToFit = YES;
}
- (void)viewWillDisappear:(BOOL)animated
{
NSLog(@"willDis");
[super viewWillDisappear:animated];
[webView release];
webView = nil;
url = nil;
}
- (void)viewDidDisappear:(BOOL)animated
{
NSLog(@"didDisappear");
[super viewDidDisappear:animated];
[webView release];
webView = nil;
url = nil;
}