I want to create a Grid view with images in iPhone programmatically. Pls do give me some example for it?
Asked
Active
Viewed 2,211 times
2 Answers
0
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
- 95,983
- 54
- 240
- 345
-
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 Mar 30 '10 at 06:17
-
Search Google on `UIButton`. You can attach a `UIImage` to a `UIButton` and set a button's action when tapped. – Alex Reynolds Mar 30 '10 at 09:19
0
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
- 86
- 2