Code Monkey home page Code Monkey logo

jqimagepicker's Introduction

JQImagePicker

前言

iOS照片自定义裁剪, 自定义宽高比裁剪, 经典16:9等裁剪方式,代码调用简单精炼.

1.自定义裁剪

自定义裁剪

2.系统自带裁剪

系统自带裁剪

更新记录

-1.0.1

2019.04.09 fix: 修复已知 bug;

  • 0.0.1

发布第一版本 0.0.1

Installation

  • 1.Drag all source files under floder JQImagePicker to your project.

  • 2.pod: JQImagePicker

Usage

#import "JQImagePicker.h"
1.系统自带裁剪
// 拍照
 JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showOriginalImagePickerWithType:ImagePickerCamera InViewController:self];
// 相册
JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showOriginalImagePickerWithType:ImagePickerPhoto InViewController:self];
2.自定义裁剪
// 拍照
 JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showImagePickerWithType:ImagePickerCamera InViewController:self Scale:scale];
// 相册
JQImagePicker *imagePicker = [JQImagePicker sharedInstance];
            imagePicker.delegate = self;
            [imagePicker showImagePickerWithType:ImagePickerPhoto InViewController:self Scale:scale];
3.JQImagePickerDelegate
- (void)imagePickerDidCancel:(JQImagePicker *)imagePicker
{
    NSLog(@"取消");
}

- (void)imagePicker:(JQImagePicker *)imagePicker didFinished:(UIImage *)editedImage
{
    NSLog(@"裁剪后:%@",editedImage);
}

Star

CSDN博客

手机加iOS开发者交流群:①群:446310206 ②群:426087546 喜欢就❤️❤️❤️star一下吧!

Love is every every every star! Your support is my renewed motivation!

License

This code is distributed under the terms and conditions of the MIT license.

jqimagepicker's People

Contributors

xiaohange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jqimagepicker's Issues

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.