You do not need most of this code. Generally speaking, you either create your view hierarchy programmatically in loadView, or use the Interface Builder to do this graphically. You did the same - you created your view in Interface Builder, and then threw it all away and did it programmatically.
loadView . , Builder. loadView nib .
, webView IBOutlet Interface Builder. , nib. , UIWebView, Interface Builder ivar.
viewDidLoad, -. nib , , , , HTML -. - :
- (void)viewDidLoad
{
NSString *html = @"<html><head><title>Should be half</title></head><body>I wish the answer were just 42</body></html>";
[webView loadHTMLString:html baseURL:nil];
}