2016-10-12 16 views
1

XCodeのコンソールに次のログが表示されています。このログが発生したときに制約エラーを同時に満たすことができないとIOSの画面がちらつく9

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. 

2016-10-12 16:48:13.218 xx[319:19209] 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:0x16c610c0 H:[JTImageButton:0x16c61120'\Ufffc(null)'(130)]>", 
"<NSLayoutConstraint:0x16be02a0 '_UITemporaryLayoutWidth' H:[JTImageButton:0x16c61120'\Ufffc(null)'(1000)]>" 
) 

Will attempt to recover by breaking constraint 
そして、私の画面がちらつきます。

どうすれば解決できますか?

答えて

1

JTImageButtonに水平サイズ130を指定し、その後に、水平サイズを1000に設定する別の制約を定義しています。これらの制約の1つを削除します。同じ軸に対して複数のサイズ制約を定義することはできません。

+0

私は1000を追加しません。それは私が知らないものです。 _UITemporaryLayoutWidthが追加され、どこがわからないのですか? – Burak

関連する問題