Giter Site home page Giter Site logo

xhphoto's Introduction

XHPhoto

  • 一行代码搞定照片选择,支持相册/相机及设置是否裁剪

效果

image

使用方法

  • 导入UIViewController+XHPhoto.h 头文件,在控制器中调用
    //edit:照片需要裁剪:传YES,不需要裁剪传NO(默认NO)
    [self showCanEdit:YES photo:^(UIImage *photo) {
        
    //TO TO...
        
    }];

Tips

  • 将Info.plist Localization native development region 值 设置 china 相册及相机界面即显示为中文

安装

手动添加:

  • 1.将 XHPhoto 文件夹添加到工程目录中
  • 2.导入 UIViewController+XHPhoto.h.h

CocoaPods:

  • 1.在 Podfile 中添加 pod 'XHPhoto'
  • 2.执行 pod install 或 pod update
  • 3.导入 UIViewController+XHPhoto.h.h

系统要求

  • 该项目最低支持 iOS 7.0 和 Xcode 7.0

许可证

XHPhoto 使用 MIT 许可证,详情见 LICENSE 文件

xhphoto's People

Contributors

coderzhuxh avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli 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.