Git Product home page Git Product logo

hzphotobrowser's Introduction

HZPhotoBrowser

##简介 一个类似于新浪微博图片浏览器的框架。
A framework similar to the sina weibo photo browser.

  • 支持显示和隐藏动画。
    -- Support the show and hide animation effects
  • 支持双击缩放,手势放大缩小。
    -- Supports double-click scaling, gestures to zoom in.
  • 支持图片存储。
    -- Support photo storage.
  • 支持网络加载gif图片,长图滚动浏览。
    -- Support network loading GIF images, scroll through long figure.
  • 支持横竖屏显示。
    -- Support for landscape and vertical screen display switch.

##说明 如果您使用了本框架,请给我发邮件([email protected]),告诉我您的APP地址,主要目的是为了提升人气,互推。

##功能展示

1. 显示和退出图片浏览器的动画效果
![image](https://github.com/chennyhuang/GIFSource/blob/master/111.gif)
2. 双击放大缩小,手势捏合
(解决双击时图片跳跃问题,现在双击放大图片比较流畅)
![image](https://github.com/chennyhuang/GIFSource/blob/master/222.gif)
3. 显示gif图片
![image](https://github.com/chennyhuang/GIFSource/blob/master/333.gif)
4.长图滚动浏览
![iamge](https://github.com/chennyhuang/GIFSource/blob/master/444.gif)
5.放大至全屏无黑边
![image](https://github.com/chennyhuang/GIFSource/blob/master/555.gif)
6.支持横屏
![image](https://github.com/chennyhuang/GIFSource/blob/master/666.gif)

###创建图片浏览器

HZPhotoBrowser *browserVc = [[HZPhotoBrowser alloc] init];
browserVc.sourceImagesContainerView = 原图的父控件;
browserVc.imageCount = 图片总数;
browserVc.currentImageIndex = 当前图片index;
// 代理
browserVc.delegate = self;
// 展示图片浏览器
[browserVc show];

###实现代理

//临时占位图(thumbnail图)
- (UIImage *)photoBrowser:(HZPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index;
//高清原图 (bmiddle图)
- (NSURL *)photoBrowser:(HZPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index;

##提示

  • 本框架纯ARC。主要目的是为了大家学习使用。
  • 如果你有好的意见或者建议,可以给我发邮件,([email protected]),如果在使用过程中遇到BUG,希望你能Issues我,谢谢。希望大家多交流,让图片浏览器更加完善。

hzphotobrowser's People

Contributors

chennyhuang avatar

Watchers

 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.