开发者

Customize the position of group in UITableView

开发者 https://www.devze.com 2023-02-13 03:39 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消