Skip to content

A drop-in full screen photo viewer for iOS with zoom, SUPER easy to use, JUST ONE LINE OF CODE. It has the "zoom the rest of the app away effect" It works with any UIImageView, just laying around, in a table, in a cell in a custom made carousel, everywhere! Whats the "EX" for? it is for **EX**TRA AWESOME!!!

License

Notifications You must be signed in to change notification settings

Julioacarrettoni/EXPhotoViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXPhotoViewer

A "drop in" photo viewer for iOS, SUPER easy to use, it has the "zoom the rest of the app away effect" It works with any UIImageView, just laying around, in a table, in a cell in a custom made carousel, everywhere!

Whats the "EX" for? it is for EXTRA AWESOME!!!

image

##What it does It will take the image and:

  • animate it from the current position to the center of the screen to a "fit" position where all the image can be seen, if the image is not big enought to cover the screen it will just center (look at the iPad screens for more detail)
  • The background will dim a little.
  • The rest of the app will back away a little.
  • The full screen image can be zoomed in and out and can be scrolled in any direction if zoomed enought.
  • To exit the full screen mode just tap anywhere.

Usage

Import "EXPhotoViewer.h"

Then if for example "anImageView" contains the image you would like to show, just do:

[EXPhotoViewer showImageFrom:anImageView];

and Voila! the rest is just MAGIC! (actually just a bunch of code)

look at ThumbCollectionCell.m line 15 if you would like to see an usage example.

##Installation Just include the followings files to your project: EXPhotoViewer

EXPhotoViewer.h
EXPhotoViewer.m
EXPhotoViewer.xib

And you are done, no library or framework or weird hacky compiler flag or anything.

##Screenshots

iPhone

image image image image

##LICENSE Simple MIT license, look at the LICENSE file for more details

About

A drop-in full screen photo viewer for iOS with zoom, SUPER easy to use, JUST ONE LINE OF CODE. It has the "zoom the rest of the app away effect" It works with any UIImageView, just laying around, in a table, in a cell in a custom made carousel, everywhere! Whats the "EX" for? it is for **EX**TRA AWESOME!!!

Resources

License

Stars

Watchers

Forks

Packages

No packages published