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

1

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

3

create a custom cell extending UITableViewCell.

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.