gpt4 book ai didi

ios - 我在所有模拟器的屏幕顶部和底部都有一个大黑条

转载 作者:行者123 更新时间:2023-11-28 23:30:58 24 4
gpt4 key购买 nike

enter image description here这是用 CDVViewController.m 编写的代码,仅基于它的显示内容。 In in the image iphone screen scrollview moving under the green color view if i scroll up the view ..how to fix this as per iphone screen我是 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];
}

最佳答案

听起来您没有包含启动 Storyboard(或所有预期尺寸的启动图像)。将其中一个添加到您的项目中,您应该没问题。

关于ios - 我在所有模拟器的屏幕顶部和底部都有一个大黑条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56555354/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com