views:

300

answers:

1

Hi all

I developing a Ipad application I am trying to use Webview but not able to open the URL in webview I am using following code

NSURL *fileURL = [[[NSURL alloc] initWithString:@"http://www.google.com/"] autorelease];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:fileURL];
[webview loadRequest:requestObj];

this code working well for Iphone app not not working for Ipad app. Is anything wrong.

Thanks Amit Battan

A: 

Hi, do u initialized webView object?

webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,100,100)];

Thanks, ithaya

ithayakumar