Grid view in iPhone SDK

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-02-15T10:37:30Z Indexed on 2010/03/29 2:43 UTC
Read the original article Hit count: 991

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk