[英]How to design and create a GridView using UIScrollView or UITableView
I think GridView is a very common view in many situation. 我认为GridView在许多情况下是一个非常普遍的观点。 As a beginner in iOS, I just wonder why iOS didn't provide a GridView class.
作为iOS的初学者,我只是想知道为什么iOS没有提供GridView类。 So here's my question, how to design and create a GridView using UIScrollView or UITableView?
所以这是我的问题,如何使用UIScrollView或UITableView设计和创建GridView? or is there some other solution to create a GridView?
或者是否有其他解决方案来创建GridView?
GitHub is the best place to search for open source solutions, so try to use it next time. GitHub是搜索开源解决方案的最佳位置,所以下次尝试使用它。 Check DTGridView or PF-GridView
检查DTGridView或PF-GridView
This question has been asked before: 之前已经问过这个问题:
Grid view in iPhone SDK iPhone SDK中的网格视图
Personally I recommend AQGridView . 我个人推荐AQGridView 。
You can use UICollectionView to create a nice gridview. 您可以使用UICollectionView创建一个漂亮的gridview。 It's simple to use.
它使用起来很简单。 It is available in iOS 6.0 and later.
它在iOS 6.0及更高版本中可用。
https://developer.apple.com/documentation/uikit/uicollectionview https://developer.apple.com/documentation/uikit/uicollectionview
So I have been delving into this over the past few days and there are a few more options that I have found worthwhile (some of these other posters have already mentioned, but I am mentioning again for completeness): 所以我在过去的几天里一直在研究这个问题,并且我发现有一些其他的选择值得(其他一些海报已经提到了,但我再次提到完整性):
https://github.com/AlanQuatermain/AQGridView (Free) https://github.com/AlanQuatermain/AQGridView (免费)
http://ioscomponents.com/Home/Products (Commercial - lots of features 29 USD) http://ioscomponents.com/Home/Products (商业 - 许多功能29美元)
https://www.developergarden.com/en/marketplace/components/details/cmp/ios-data-grid-table-view (commercial 129 USD) https://www.developergarden.com/en/marketplace/components/details/cmp/ios-data-grid-table-view(commercial 129 USD)
http://www.binpress.com/app/vertical-horizontal-scrolling-datagrid-for-ios/1082 (Commercial 129 USD) http://www.binpress.com/app/vertical-horizontal-scrolling-datagrid-for-ios/1082 (商业129 USD)
Infragistics has one too: http://www.infragistics.com/products/ios USD 295 (USD 995 if you want support). Infragistics也有一个: http : //www.infragistics.com/products/ios USD 295(如果您需要支持,则为995美元)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.