【发布时间】:2016-05-19 01:50:34
【问题描述】:
仅在我运行我的应用并启用个人热点时收到以下警告,因此屏幕顶部的个人热点蓝条。有没有办法解决这个问题?
2016-05-19 09:07:55.589 RemindersPro[591:121237] 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:0x145d7ff30 V:|-(20)-[UIInputSetContainerView:0x145e77b70] (Names: '|':UITextEffectsWindow:0x145d7e8d0 )>",
"<NSLayoutConstraint:0x145d307a0 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x145e77b70] (Names: '|':UITextEffectsWindow:0x145d7e8d0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x145d7ff30 V:|-(20)-[UIInputSetContainerView:0x145e77b70] (Names: '|':UITextEffectsWindow:0x145d7e8d0 )>
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.
updating
reminderListsStructure of 24 calendars recreated.
我尝试按照In Call Status Bar (Unable to Satisfy Constraints) 中的建议修复它,方法是将以下函数添加到我的 AppDelegate。不幸的是,它没有帮助。
func application(application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect) {
for window in UIApplication.sharedApplication().windows {
if window.dynamicType.self.description().containsString("UITextEffectsWindow") {
window.removeConstraints(window.constraints)
}
}
}
【问题讨论】:
标签: ios xcode swift interface-builder nslayoutconstraint