実機でアプリを起動した時に以下のような警告が表示された
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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) |
iPhoneアプリ開発備忘録
の
Auto Layoutで制約をかけたxibの実行時に、Unable to simultaneously satisfy constraints. と表示された場合の対処法
で確認すると、
矛盾している制約があるために発生しているとのことで、制約を削除したら確かに警告が取れた。
この警告結構便利かも。
0 コメント:
コメントを投稿