Code Monkey home page Code Monkey logo

cenllv / exphotoviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julioacarrettoni/exphotoviewer

0.0 1.0 0.0 12.25 MB

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: MIT License

Ruby 10.85% Objective-C 89.15%

exphotoviewer's Introduction

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

exphotoviewer's People

Contributors

julioacarrettoni avatar

Watchers

Cen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.