YJImagePickerController 1.1.6

YJImagePickerController 1.1.6

yangjie维护。



  • full-of-fire

YJImagePickerController

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install。1.相册的多选功能

YJImagePickerController *albumsList = [YJImagePickerController new];
albumsList.didFinishPickingImages = ^(NSArray *images) {

NSLog(@"====images = %@",images);
};
albumsList.didCancel = ^{

NSLog(@"取消选择");
};
[self presentViewController:albumsList animated:YES completion:nil];

2.多拍相机的使用

YJMulCameraViewController *camera = [YJMulCameraViewController new];
camera.didFinishTakeImagesBlock = ^(NSArray *images) {

NSLog(@"====images = %@",images);
};
camera.didCancelBlock = ^{
NSLog(@"取消");
};
[self presentViewController:camera animated:YES completion:nil];

3.相册预览功能

YJImagePrewViewController *preView = [YJImagePrewViewController new];

YJImageModel *model = [YJImageModel new];
model.imageURL = [NSURL URLWithString:@"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=4115900726,1603453606&fm=173&s=38B75894034017490198B48F030070C8&w=218&h=146&img.JPEG"];
preView.photoList = @[model,model,model,model,model,model];
[self presentViewController:preView animated:YES completion:nil];

需求

安装

YJImagePickerController 通过 CocoaPods 提供。要安装它,请简单地添加以下行到 Podfile 中

pod 'YJImagePickerController'

作者

full-of-fire, [email protected]

许可

YJImagePickerController 可在 MIT 许可下使用。有关更多信息,请参阅 LICENSE 文件。