Giter Club home page Giter Club logo

chphotobrowser's Introduction

CHPhotoBrowser

A photo browser for humans

Simple...
  • 100 lines of Objective-C you can understand
  • runs on iOS 6+
  • just drag and drop .h and .m in your project
  • MIT license
... yet powerful
  • smooth animations
  • memory saving
  • diplay both remote images and local images(Assets Library or local path) as well

Requirements

CHPhotoBrowser requires:

Install

$ git clone https://github.com/cyndibaby905/CHPhotoBrowser.git
$ cd CHPhotoBrowser
$ git submodule init
$ git submodule update

How to use

#import "CHPhotoBrowserViewController.h"

NSArray *remoteImages = @[@"http://mg.soupingguo.com/bizhi/big/10/273/104/10273104.jpg",
                          @"http://cdn.duitang.com/uploads/item/201310/10/20131010184344_wQhKC.jpeg",
                          @"http://cdn.duitang.com/uploads/item/201304/27/20130427014412_KU2jV.jpeg",
                          @"http://apple.xdnice.com/uploads/allimg/121009/10144S355-0.jpg",
                          @"http://apple.xdnice.com/uploads/allimg/121106/12233610J-0.jpg",
                          @"http://cdn.duitang.com/uploads/item/201306/24/20130624132605_eBKVA.jpeg",
                          @"http://img2.duitang.com/uploads/item/201304/27/20130427021414_YQE2w.jpeg",
                          @"http://img4.duitang.com/uploads/item/201304/27/20130427014742_aFFaw.jpeg",
                          @"http://cdn.duitang.com/uploads/item/201304/27/20130427012418_HehyL.jpeg",
                          @"http://apple.xdnice.com/uploads/allimg/121106/12204K313-0.jpg"];
    
CHPhotoBrowserViewController *photoVC = [[CHPhotoBrowserViewController alloc] initWithImages:remoteImages]; 
[self presentViewController:photoVC animated:YES completion:nil];

How it looks

![CHPhotoBrowser] (https://raw.github.com/cyndibaby905/CHPhotoBrowser/master/demo.gif)

chphotobrowser's People

Contributors

cyndibaby905 avatar

Watchers

 avatar James Cloos 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.