【发布时间】:2019-10-26 13:31:53
【问题描述】:
this 是在 CDVViewController.m 中编写的代码,仅基于其显示内容。 Iam 刚接触 Cordova,谁能帮帮我?
-(void)createView
{CGRect webViewBounds = self.view.bounds;
webViewBounds.origin = self.view.bounds.origin;
self.webView = [self newCordovaViewWithFrame:webViewBounds];
self.webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
[self.view addSubview:self.webView];
[self.view sendSubviewToBack:self.webView];
}
-(UIWebView*)newCordovaViewWithFrame:(CGRect)bounds
{
return [[UIWebView alloc] initWithFrame:bounds];
}
【问题讨论】:
-
添加所需尺寸的启动画面。
-
@NiravKotecha 嗨,你能看到我上面的截图,这是我现在面临的问题如何解决?在 2 张图片中重叠
标签: ios objective-c cordova uiwebview uiwindow