web view in cocso2d
how can I use web view in coc开发者_如何学编程so2d
webView = [[WebView alloc] initWithFrame:NSMakeRect(0,0,580,400)
frameName:@"mainFrame"
groupName:nil];
[webView setAcceptsTouchEvents:YES];
[view addSubview:webView];
[[CCDirector sharedDirector].openGLView addSubview:view];
NSURL*url=[NSURL URLWithString:@"http://www.google.com"];
NSURLRequest*request=[NSURLRequest requestWithURL:url];
[[webView mainFrame] loadRequest:request];
精彩评论