Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to design and create a GridView using UIScrollView or UITableView

I think GridView is a very common view in many situation. As a beginner in iOS, I just wonder why iOS didn't provide a GridView class. So here's my question, how to design and create a GridView using UIScrollView or UITableView? or is there some other solution to create a GridView?

like image 918
Jayson Avatar asked Feb 28 '11 10:02

Jayson


3 Answers

You can use UICollectionView to create a nice gridview. It's simple to use. It is available in iOS 6.0 and later.

https://developer.apple.com/documentation/uikit/uicollectionview

like image 187
fahmi ocha Avatar answered Nov 17 '22 04:11

fahmi ocha


GitHub is the best place to search for open source solutions, so try to use it next time. Check DTGridView or PF-GridView

like image 40
Michal K. Avatar answered Nov 17 '22 03:11

Michal K.


This question has been asked before:
Grid view in iPhone SDK

Personally I recommend AQGridView.

like image 7
Kobski Avatar answered Nov 17 '22 05:11

Kobski