tags:

views:

331

answers:

2

Hi,

I want to create a Grid view with images in iPhone programatically. Pls do give me some example for it?

A: 

Loop through the rows and columns of images and set the UIImage instance's frame origin some offset-multiple of your image or image-cell width.

Alex Reynolds
Hi thanks for the reply I want to place buttons as images so that i can perform some action on click of the button.How should i do that? If u have any links to such example pls give it?
suse
Search Google on `UIButton`. You can attach a `UIImage` to a `UIButton` and set a button's action when tapped.
Alex Reynolds
A: 

Maybe it would be easier to use Three20 component. There is Photo Viewer for displaying images in grid, which "emulates Apple's Photos app with all of its flick n' pinch delight".

marcin.walus