Это связано с но отличается от , чтобы использовать компоновку потока или настроить?.
Вот иллюстрация того, что я пытаюсь сделать:
Мне интересно, могу ли я сделать это с помощью UICollectionViewFlowLayout
, его подкласса или мне нужно создать полностью настраиваемый макет? Основываясь на видео WWDC 2012 на UICollectionView, кажется, что если вы используете Flow Layout с вертикальной прокруткой, ваши линии компоновки горизонтальны, и если вы прокручиваете горизонтально, ваши линии макета вертикальны. Я хочу, чтобы горизонтальные макеты отображались в виде горизонтальной прокрутки.
У меня также нет каких-либо неотъемлемых разделов в моей модели - это всего лишь один набор элементов. Я мог бы сгруппировать их по разделам, но просмотр коллекции изменен, поэтому количество элементов, которые могут поместиться на странице, иногда менялось бы, и кажется, что выбор каждой страницы для каждого элемента лучше оставить на макете, чем на модель, если у меня нет каких-либо значимых разделов.
Итак, могу ли я сделать это с помощью Flow Layout, или мне нужно создать собственный макет?