gpt4 book ai didi

ios - iPhone 应用程序被拒绝 : first time launch the screen turns white on iPad

转载 作者:搜寻专家 更新时间:2023-11-01 07:26:56 25 4
gpt4 key购买 nike

我的 iPhone 专用应用程序被拒绝了,但是当 Apple 在 iPad x1/x2 上尝试它时,应用程序在启动屏幕后变白了。我认为状态栏是问题所在,但我不确定。我在 plist 中有 View controller-based status bar appearance NO。然后在 PageViewController 中的第一个 VC 上,我使用 UIApplication.sharedApplication().statusBarHidden = false

当应用从内存中移除并重新打开时,该应用会正常运行。

有没有人遇到同样的问题?

编辑:

更多信息:在 LaunchScreen 之后,我的第一个 ViewController 是一个 PageViewController,在第一个 ViewController 中,我在下载一些 json 的同时打开了一个加载 ViewController。这看起来/显示为启动屏幕的扩展,但带有 L​​aunchScreen 中使用的图像的动画,当下载 JSON 时,我将其删除并显示我的 PageViewController。

self.loadingViewController = LoadingiewController()
self.loadingViewController!.view.frame = self.view.bounds
self.navigationController?.view.addSubview(self.loadingViewController.view)

编辑2:

所以我仍然有问题。它仅在 TestFlight 版本中。我正在将状态栏从浅色调整为默认,从隐藏到可见。

在 Xcode/Devices 实时日志下,我得到了这个:

<Warning>: Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x13e61d790 V:|-(20)-[UIInputSetContainerView:0x13e546f30] (Names: '|':UITextEffectsWindow:0x13e544af0 )>",
"<NSLayoutConstraint:0x13e632b30 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x13e546f30] (Names: '|':UITextEffectsWindow:0x13e544af0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x13e61d790 V:|-(20)-[UIInputSetContainerView:0x13e546f30] (Names: '|':UITextEffectsWindow:0x13e544af0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

编辑3:

所以我才注意到。如果我从 TestFlight 弹出窗口/警报窗口打开新安装的应用程序,约束就会被打破,应用程序就会变白。但!如果我第一次从 SpringBoard 打开应用程序,它就会运行。这太奇怪了。

最佳答案

我们在 didFinishLaunchingWithOptions 中有 UIWindow.appearance().backgroundColor = UIColor.whiteColor()

删除这一行解决了它。

关于ios - iPhone 应用程序被拒绝 : first time launch the screen turns white on iPad,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35453820/

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