1
我需要在cocos2D遊戲中顯示webview。我用這個代碼。但它不顯示關閉按鈕,我怎樣才能啓用關閉按鈕?這裏是屏幕,我想:在UIWebView中啓用關閉按鈕
代碼中使用:
CGRect webFrame = [[UIScreen mainScreen] applicationFrame];
UIWebView* myWebView = [[[UIWebView alloc] initWithFrame:webFrame] autorelease];
myWebView.backgroundColor = [UIColor whiteColor];
myWebView.scalesPageToFit = YES;
myWebView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
myWebView.delegate = self;
[self.navController.view addSubview:myWebView];
[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://biggooseegg.com/moregamesscreen"]]];
其他一些疑惑:我怎樣才能獲得圓角的邊框爲這個網站的看法?
非常感謝先生,它的工作。 – Guru 2012-07-27 19:10:50