我的应用被拒绝了。这是一款仅限iPhone的应用程序,但当他们(Apple-review)在iPad上试用它时,该应用程序在启动屏幕后变为白色。我想我把问题找到了状态栏。我在plist中有View controller-based status bar appearance
NO
。然后在我在PageViewController中的第一个VC上使用UIApplication.sharedApplication().statusBarHidden = false
。
从内存中删除应用程序并重新打开,然后就可以了。
仅在TestFlight版本中。如果我从TestFlight弹出/警告窗口打开新安装的应用程序,约束会中断并且应用程序变为白色。
但是!
如果我第一次使用SpringBoard打开应用程序。这太奇怪了。
在Xcode / Devices实时日志下,从TestFlight弹出窗口打开时,我得到了这个。
<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.