Вопрос

Is it possible to customize the position of groups in a UITableViewController? For example, drawing the groups horizontally or customize the space inside two groups.

Thanks.

Это было полезно?

Решение

If you are targeting iOS 6+, UICollectionView implements the features you are looking for. It can do a horizontal layout out of the box and UICollectionViewLayout allows you to customize everything about the display and positioning of items. If targeting iOS 4.3+, there is a third-party implementation of it called PSTCollectionView.

The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts. Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layouts. Collection views support customizable layouts that can be used to implement multi-column grids, tiled layouts, circular layouts, and many more. You can even change the layout of a collection view dynamically if you want.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top