开发者

How to create a Gridview in iPhone programmatically?

开发者 https://www.devze.com 2022-12-24 21:06 出处:网络
I want to create a Grid view with images in iPhone progra开发者_StackOverflow社区mmatically. Pls do give me some example for it?Loop through the rows and columns of images and set the UIImage instance

I want to create a Grid view with images in iPhone progra开发者_StackOverflow社区mmatically. Pls do give me some example for it?


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.


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".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号