4

Here i need the grid layout for creating similar to the photo album page,But in that page i am having thousands of images so that, i am using uitableview

dineshprasanna
  • 1,284
  • 4
  • 20
  • 37

2 Answers2

6

GridView can be done using UITableView. One way u can do it is have a custom UITableViewCell & have 2 imageViews with tag 1 & 2. That way when u access that view in cellForRowIndex... you can extract that imageView & populate...

You can do this or u can use what others have already done -

how to design and create a GridView using UIScrollView or UITableView

How To Create A Gallery on iOS

https://stackoverflow.com/questions/6430012/ios-grid-view-with-section-headers

Community
  • 1
  • 1
Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
3

create a custom cell extending UITableViewCell.

Add UIImageView to it. assign images on - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

Mitul Nakum
  • 5,514
  • 5
  • 35
  • 41