Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use uiwebview to show some web page?

How to use uiwebview to show some web page for url request? i dont know how to do it. who can tell me how to do it? has any opensource? thanks.

like image 666
user327661 Avatar asked Dec 16 '22 19:12

user327661


1 Answers

NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
like image 82
prgmast3r Avatar answered Jan 04 '23 07:01

prgmast3r