开发者

IPad App Issue - Webview

开发者 https://www.devze.com 2022-12-25 17:46 出处:网络
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

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


Did you initialize webView object?

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

精彩评论

暂无评论...
验证码 换一张
取 消