ios - 我在所有模拟器的屏幕顶部和底部都有一个大黑条
问题描述
这是在 CDVViewController.m 中编写的代码,仅基于它的显示内容。我是 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];
}
解决方案
听起来您没有包含启动故事板(或所有预期尺寸的启动图像)。将其中之一添加到您的项目中,您应该没问题。
推荐阅读
- javascript - CRUD 操作未更新一个字段
- javascript - 如何使用array.map,useState,useEffect在React中随机显示项目和onClick?
- javascript - Angular 导航有时在 heroku 中不起作用
- java - 在 Junit 中使用 softassert 代替 TestNG……?
- python - 无法在 Windows 10 上成功运行 kivy
- iis - IIS 10 - 404 上的 Blazor webassembly 用于某些 dll
- c# - JProperty 不会为值生成双引号
- javascript - 带有 for of 循环和内部等待的异步函数,它会等待吗?
- ios - IOS 上的自定义标头在不应该显示时保持可见
- c++ - c++ AMP Concurrency::runtime_exception 在创建array_view时发生