简体   繁体   English

Xamarin iOS 布局更改后添加启动屏幕 storyboard

[英]Xamarin iOS layout changes after adding launch screen storyboard

I inherited an old xamarin codebase.我继承了旧的 xamarin 代码库。 It launches in this strange windowed form with top and bottom black bars (pictured below).它以这种带有顶部和底部黑条的奇怪窗口形式启动(如下图所示)。 It also uses a launch image.它还使用启动图像。 As soon as I start using a launch storyboard, the app becomes fullscreen (no top/bottom black bars), and as a result, all the layout is messed up.一旦我开始使用启动 storyboard,应用程序就会变成全屏(没有顶部/底部黑条),结果,所有布局都搞砸了。

Does anyone know how to have the launch storyboard without removing the black bars?有谁知道如何在不移除黑条的情况下启动 storyboard?

非全屏布局

Not really, this is a feature.不是真的,这是一个功能。

Apple says, "Your app will run in Full Screen Display Mode on iPhone X, iPhone XS, iPhone XS Max, and iPhone XR if your project's base SDK is set to iOS 11 or later and you have a Launch Storyboard or iPhone X launch image." Apple 表示:“如果您的项目的基础 SDK 设置为 iOS 11 或更高版本,并且您有 Launch Z7B6A507D7CBB081860D8Z85907D7CBB081860D8Z859055iPhone 启动时,您的应用程序将在 iPhone X、iPhone XS、iPhone XS Max 和 iPhone XR 上以全屏显示模式运行。”

So you adding the storyboard triggers the app to run in full screen mode.因此,您添加 storyboard 会触发应用程序以全屏模式运行。

ref: https://developer.apple.com/iphone/ , search for "Enable full screen native resolution". ref: https://developer.apple.com/iphone/ ,搜索“启用全屏原生分辨率”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM