views:

2410

answers:

5

Hi,

I would like to create a grid view in my iPhone app similar to that shown in the iPad photos app. I know that the iPhone 3.2 SDK is under NDA, but is there a library or framework available for adding this kind of functionality (non-SDK). Ideally I would like to eventually develop an iPad version of the app, where the grid would be 3 items wide in portrait and 4 in landscape, however for the time being I would like 2 items wide in portrait and 3 wide in landscape.

The only way I can think of doing this is by subclassing UITableView and having a custom cell that creates the 2 or 3 items. This however seems messy and I am sure that there is a better way.

A typical item will have a picture, label and button - nothing too complicated.

Thanks

+2  A: 

You can still use the UITableView for this and you would not need to subclass it. Like you said all you have to do is create your own custom cell which it is not complicated. Not messy at all :)

willcodejavaforfood
A: 

I also need same kind of stuff,can any one help me?

blossom
+1  A: 

Try DTGridView:

http://www.danieltull.co.uk/blog/2009/10/28/dtgridview/

Amorya
+1  A: 

I recommend AQGridView

catlan