Код: Выделить всё
The behavior of the UICollectionViewFlowLayout is not defined because:
2025-01-12 09:41:31.160276-0600 ... the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
2025-01-12 09:41:31.160489-0600 ... Please check the values returned by the delegate.
2025-01-12 09:41:31.160885-0600 ... The relevant UICollectionViewFlowLayout instance is , and it is attached to .
2025-01-12 09:41:31.161159-0600 ... Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
Вот CollectionView...
Код: Выделить всё
Код: Выделить всё
Одно странное поведение заключается в том, что, когда CollectionView содержит более двух элементов, ошибка появляется только дважды.
Я пытался «Сделать символическую точку останова в UICollectionViewFlowLayoutBreakForInvalidSizes, чтобы отловить это в отладчике». согласно предложению во время выполнения, но Visual Studio, похоже, не имеет возможности сделать это.
Любые предложения по исправлениям будут с благодарностью приняты. Возможно, это ошибка MAUI?
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/793 ... ecause-the
Мобильная версия