开发者

IPad App Issue - Webview

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜