// // WebViewController.m // Unews // // Created by zonble on 2008/6/17. // Copyright 2008 zonble.twbbs.org. All rights reserved. // #import "WebViewController.h" @implementation WebViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { // Initialization code } return self; } /* Implement loadView if you want to create a view hierarchy programmatically - (void)loadView { } */ /* If you need to do additional setup after loading the view, override viewDidLoad. - (void)viewDidLoad { } */ - (void)loadURL:(NSURL *)URL { NSURLRequest *r = [NSURLRequest requestWithURL:URL]; [_webView loadRequest:r]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview // Release anything that's not essential, such as cached data } - (void)dealloc { [super dealloc]; } @end