Hi, Can anyone point me some good examples on how to use UIWebView in iPhone.
A:
here is the code for using UIWebview
Hope this gives you an idea for using it
CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0);
UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame];
[webView setBackgroundColor:[UIColor whiteColor]];
NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[self addSubview:webView];
[webView release];
hAPPY cODING...
Suriya
2010-09-01 04:46:10
Thank you so much!!! This is really easy to understand.
Abhinav
2010-09-01 05:49:43
Always welcome... Bt getting a vote is the best thank :-)
Suriya
2010-09-01 09:46:24
+1
A:
Apple has a couple of sample code projects:
Web - Shows how to properly use a UIWebView and target websites using NSURL class.
and
Demonstrates how to implement UIWebView with a transparent background.
Shaggy Frog
2010-09-01 04:52:03