Кроме того, я наложил на него ограничение соотношения.
В моем tableViewController я использую UITableViewAutomaticDimension в качестве высоты ячейки таблицы.
Оценочная высота строки составляет 180, что составляет точный размер ячейки будет иметь на дисплее шириной 320 пикселей (как я, как видите, так и делаю).
Я все еще развертываю версию 8.4, но при запуске проекта на устройстве с iOS 9 я получаю массу предупреждений об автоматическом макете, хотя все работает нормально и выглядит идеально.
Само предупреждение абсолютно верное. Есть два ограничения, которые мне не нужны — те, которые iOS добавила сама.
Код: Выделить всё
2015-09-29 11:24:57.771 app[1039:324736] 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)
(
"",
"",
"",
"",
"",
"",
""
)
Will attempt to recover by breaking constraint
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
Подробнее здесь: https://stackoverflow.com/questions/326 ... y-in-ios-9
Мобильная версия