Coder Social home page Coder Social logo

yjimagepickercontroller's Introduction

YJImagePickerController

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first. 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];

Requirements

Installation

YJImagePickerController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YJImagePickerController'

Author

full-of-fire, [email protected]

License

YJImagePickerController is available under the MIT license. See the LICENSE file for more info.

yjimagepickercontroller's People

Stargazers

改变自己 avatar

Watchers

James Cloos avatar 改变自己 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.