PowenKo, iOS Tutorial 71, UI, UIWebView load URL.


PowenKo, iOS Tutorial, UI, UIWebView load URL.

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
    [super viewDidLoad];

        m_UIWebView.delegate=self;
	m_UIWebView.scalesPageToFit=YES;
	[m_UIWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];

}

sample code:

Tutorial_UI_UIWebview


Leave a Reply