图片选择器 TZImagePickerController

码农软件 · 软件分类 · 图像(Image) · 2019-05-29 11:43:51

软件介绍

TZImagePickerController 是一个支持多选、选原图和视频的图片选择器,同时有预览功能,支持 iOS6+。

一. Installation 安装

CocoaPods

pod 'TZImagePickerController'

Carthage

github "banchichen/TZImagePickerController"

手动安装

将 TZImagePickerController 文件夹拽入项目中,导入头文件:#import "TZImagePickerController.h"

 二. Example 例子

TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:9 delegate:self];// You can get the photos by block, the same as by delegate.// 你可以通过block或者代理,来得到用户选择的照片.[imagePickerVc setDidFinishPickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets) {

}];
[self presentViewController:imagePickerVc animated:YES completion:nil];

三. Requirements 要求

iOS6 及以上系统可使用. ARC环境.

如果运行在 iOS6 或 7 系统上,用的是 AssetsLibrary 库获取照片资源。

如果运行在 iOS8 及以上系统上,用的是 PhotoKit 库获取照片资源。

本文地址:https://www.codercto.com/soft/d/6795.html

The Practice of Programming

The Practice of Programming

Brian W. Kernighan、Rob Pike / Addison-Wesley / 1999-2-14 / USD 49.99

With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual progr......一起来看看 《The Practice of Programming》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具