Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective-C: Photo Viewer for iOS with ARC support?

The last couple of days I've tried to implement a Photo Viewer in my iOS 5.0 Application in Xcode 4.2. By project is running with Automatic Reference Counting (ARC). I've tried Three20 Photo Viewer but this has a lot of dependencies and is really a heavy piece to include in my project. Next I've tried EGOPhotoViewer which really seems as a great solution for my purpose -- but sadly I does not support ARC and because of that, I cannot compile it inside my project.

Does anybody know a Photo Viewer for iOS which supports ARC -- or could, in some way, be added as a library to a project running with ARC?

like image 212
dhrm Avatar asked Dec 01 '11 19:12

dhrm


2 Answers

You might want to take a look at MWPhotoBrowser - you can add it to your project as a static library which will work independantly of your project's ARC settings.

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.

MWPhotoBrowser Screenshots

like image 198
Michael Waterfall Avatar answered Nov 18 '22 05:11

Michael Waterfall


It is possible to disable ARC for individual files by adding the -fno-objc-arc to a file.

To disable ARC for a file select your project in Xcode 4, go to the build phases tab, select the files you want to disable for ARC, add the -fno-objc-arc compiler flag to these files.

like image 28
vikingosegundo Avatar answered Nov 18 '22 05:11

vikingosegundo