Three20 Photo Scroller alternative?

[亡魂溺海] 提交于 2019-12-20 09:45:29

问题


I wan to add a view in my iPhone app where the user can scroll (paged) through a series of web loaded images.

I've been reading many threads and most of them end up suggesting the Three20 lib. I've tried that and looks complicated to integrate and quite heavy in size (1.2Mb added to my app). Additionally I only need the TTPhotoViewContoller class, but I have to integrate with the whole Three20 bundle.

Is there a lighter solution or component to do a image scroller on iPhone?

Thanks in advance.

Gonso


回答1:


Have a look at enormego's PhotoViewer,sounds like it should fit the bill:

"Photo Viewer is the photo viewer from Facebook’s three20 library, torn out, and freed of it’s dependency on three20. We’ve removed most of the bulk code, and it’s weighing in at a lean 800KB vs. three20’s 4.7MB, which is an awful lot for a simple photo viewer."

http://github.com/enormego/PhotoViewer




回答2:


You might want to take a look at MWPhotoBrowser:

MWPhotoBrowser can display one or more images by providing either UIImage objects, or URLs to files, web images or library assets. The photo browser handles the downloading and caching of photos from the web seamlessly. Photos can be zoomed and panned, and optional (customisable) captions can be displayed. The browser can also be used to allow the user to select one or more photos using either the grid or main image view.



来源:https://stackoverflow.com/questions/2973229/three20-photo-scroller-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!