TZImagePickerController圖片選擇器
TZImagePickerController 是一個(gè)支持多選、選原圖和視頻的圖片選擇器,同時(shí)有預(yù)覽功能,支持 iOS6+。

一. Installation 安裝
CocoaPods
pod 'TZImagePickerController'
Carthage
github "banchichen/TZImagePickerController"
手動(dòng)安裝
將 TZImagePickerController 文件夾拽入項(xiàng)目中,導(dǎo)入頭文件:#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 及以上系統(tǒng)可使用. ARC環(huán)境.
如果運(yùn)行在 iOS6 或 7 系統(tǒng)上,用的是 AssetsLibrary 庫獲取照片資源。
如果運(yùn)行在 iOS8 及以上系統(tǒng)上,用的是 PhotoKit 庫獲取照片資源。
評論
圖片
表情

