简体   繁体   English

如何创建图像的网格视图?单击图像时,应打开该图像

[英]How can I create grid view of images? On click of a image it should open that image

How can I create the grid of images, like How it happens in the iPad photos app and on image click it should open that image, Can anybody give me some tutorial link or example code? 我如何创建图像网格,如在iPad照片应用程序中如何发生以及在图像上单击它应该打开该图像,任何人都可以给我一些教程链接或示例代码? Thanx in advance. Thanx提前。

There are several open source options to consider: 有几个开源选项需要考虑:

https://github.com/elc/ELCImagePickerController https://github.com/elc/ELCImagePickerController
https://github.com/gdavis/FGallery-iPhone https://github.com/gdavis/FGallery-iPhone
https://github.com/kolinkrewinkel/KKGridView/ https://github.com/kolinkrewinkel/KKGridView/
https://github.com/danielctull/DTGridView https://github.com/danielctull/DTGridView
https://github.com/samsoffes/sstoolkit (SSCollectionView) https://github.com/samsoffes/sstoolkit(SSCollectionView

Some of these will enlarge the photo automatically, and for other's you'll have to implement that part yourself. 其中一些会自动放大照片,而另一些则需要自己实现。 I've personally used FGallery and found it very full-featured, easy to use, and stable. 我个人使用过FGallery,发现它非常全功能,易于使用且稳定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM