Repository files navigation
项目UI与资源方面部分使用TZImagePickerController项目,感谢分享。
兼容非系统相册的调用方式
支持Gif(压缩)、视频(压缩)、图片(压缩)
图片编辑、视频编辑(依赖LFMediaEditingController库,默认没有编辑功能)
视频编辑 需要访问音乐库 需要在info.plist 添加 NSAppleMusicUsageDescription
支持iPhone、iPad 横屏
支持国际化配置(复制LFImagePickerController.bundle\LFImagePickerController.strings到项目中,修改对应的值即可;详情见DEMO;注意:不跟随系统语言切换显示)
详细使用见LFImagePickerController.h 的初始化方法
CocoaPods:pod 'LFImagePickerController' 或 pod 'LFImagePickerController/LFMediaEdit' (带图片编辑功能)
手动导入:将LFImagePickerController\class文件夹拽入项目中,导入头文件:#import "LFImagePickerController.h"
使用pod install安装LFMediaEditingController库
在LFImagePickerController的project --> Build Settings --> 搜索Preprocessor Macros --> 在Debug与Release添加LF_MEDIAEDIT=1
LFImagePickerController *imagePicker = [[LFImagePickerController alloc] initWithMaxImagesCount:9 delegate:self];
//根据需求设置
imagePicker.allowTakePicture = NO; //不显示拍照按钮
imagePicker.doneBtnTitleStr = @"发送"; //最终确定按钮名称
[self presentViewController:imagePicker animated:YES completion:nil];
About
一个支持多选图片和视频的图片选择器,同时有预览、编辑功能
Resources
License
Stars
Watchers
Forks
Languages
Objective-C
99.0%
Other
1.0%
You can’t perform that action at this time.