iOS菜鸟一枚, 如下问题真机调试时出现的问题,求解答,感激不尽!!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:0x14fd714d0 V:|-(20)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>",
"<NSLayoutConstraint:0x14fe170d0 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>"
)Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x14fd714d0 V:|-(20)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>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.
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:0x14fd714d0 V:|-(20)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>",
"<NSLayoutConstraint:0x14fe170d0 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>"
)Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x14fd714d0 V:|-(20)-[UIInputSetContainerView:0x14fd6e5d0] (Names: '|':UITextEffectsWindow:0x14ff098e0 )>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.
解决方案 »
- iphone GPS 除了 didUpdateToLocation在位置移动调用,还有其他方法吗?
- app中浏览flv或者swf,求解决方案~~~~~
- iphone 第一次动画效果未出现,请帮忙解答,谢谢
- 去融信恒通的笔试题,求解答,大家一起讨论下
- 看了论坛介绍IPHONE的开发环境的安装好复杂,但是专业的苹果论坛一直在介绍给普通的PC机器装苹果的系统,那直接装苹果的系统后,可以装开发环境?
- 请问 Fix issue 证书为什么下载错
- 如何调到下一个页面点击按钮、刚学习不太懂、希望大虾们帮忙
- 创建项目出现这个问题:clang: error: linker command failed with exit code 1
- cocoapods安装出现错误
- 有谁知道怎么横向显示pdf吗??
- wbeview 监听js
- iOS页面跳转问题求助
http://stackoverflow.com/questions/33112762/in-call-status-bar-unable-to-satisfy-constraints
func application(application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect) {
for window in UIApplication.sharedApplication().windows {
if window.dynamicType.self.description().containsString("UITextEffectsWindow") {
window.removeConstraints(window.constraints)
}
}
}