Giter VIP home page Giter VIP logo

indenpendman / zlphotobrowser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from longitachi/zlphotobrowser

0.0 1.0 0.0 51.37 MB

方便易用的相册多选框架,支持预览/相册内拍照、预览快速多选照片,3DTouch预览照片,编辑裁剪图片,混合多选image、gif、Live Photo及video;相册混合选择;原图功能;支持多语言国际化(中文简/繁,英语,日语);在线下载iCloud端图片;自定义最大选择量及最大预览量;自定义照片升序降序排列;自定义照片显示圆角弧度

License: MIT License

Objective-C 99.67% Ruby 0.33%

zlphotobrowser's Introduction

ZLPhotoBrowser

Version License Platform Language

框架整体介绍

更新日志

● 2.2.6: ①:可混合选择image、gif、livephoto、video类型;
         ②:支持video、gif、livephoto类型的多选;
         ③:支持控制video最大选择时长;
● 2.2.3: 新增图片编辑功能;
● 2.2.1: 新增3D Touch预览功能 (需设备支持);
● 2.2.0: 优化内存问题;
● 2.1.9: 新增选择及预览Live Photo功能 (iOS 9.0);
● 2.1.7: 新增内部拍照按钮实时显示相机俘获画面功能;
● ... 新增gif及video选择功能;

框架支持

最低支持:iOS8.0

使用方法

第一步:

  • Manually
    • 1.直接把PhotoBrowser文件夹拖入到您的工程中
    • 2.导入 Photos.framework及PhotosUI.framework
  • Cocoapods
pod search ZLPhotoBrowser

第二步:

  • 在项目plist配置文件中添加如下键,值并设为YES
Localized resources can be mixed YES
//或者右键plist文件Open As->Source Code 添加
<key>CFBundleAllowMixedLocalizations</key>
<true/>

代码中调用

#import "ZLPhotoActionSheet.h"
    
ZLPhotoActionSheet *actionSheet = [[ZLPhotoActionSheet alloc] init];
//设置照片最大预览数
actionSheet.maxPreviewCount = 20;
//设置照片最大选择数
actionSheet.maxSelectCount = 10;
actionSheet.sender = self;

[actionSheet setSelectImageBlock:^(NSArray<UIImage *> * _Nonnull images, NSArray<PHAsset *> * _Nonnull assets, BOOL isOriginal) {
    //your codes
}];

[actionSheet showPreviewAnimated:YES];

多语言国际化效果图

image image image image

3DTouch预览效果图

image

编辑功能预览图

image

混合选择预览图

image

预览快速多选效果图

image image

直接进入相册选择相片效果图

image

预览大图及缩放效果图

image image image

拍照

image

相册内混合选择效果图

image

预览已选择照片效果图

image image

原图功能效果图

image

zlphotobrowser's People

Contributors

longitachi avatar kkkgit avatar changsanjiang avatar mouse-lin avatar

Watchers

hewenfeng 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.