Giter Site home page Giter Site logo

ritlimagepickerdemo-master's Introduction

Photos.framework是iOS8后苹果推出的一套替代AssetsLibrary.framework获取相册资源的原生库,至于AL库,欢迎大家给博文iOS开发------简单实现图片多选功能(AssetsLibrary.framework篇)提出宝贵的意见。

提醒一下,要使用相册资源库的时候,为了适配一下将来的iOS10,不要忘记在info.plist文件中加入NSPhotoLibraryUsageDescription这个描述字段啊,更多的权限坑请关注一下博文 iOS开发------iOS 10 由于权限问题导致崩溃的那些坑

博文原址 : iOS开发------简单实现图片多选功能(Photos.framework篇)但我觉得没啥看的必要呢..


swift版本:Swift-RITLImagePickerDemo

用法比较简单:

RITLPhotoNavigationViewModel * viewModel = [RITLPhotoNavigationViewModel new];

__weak typeof(self) weakSelf = self;

//    设置需要图片剪切的大小,不设置为图片的原比例大小
//    viewModel.imageSize = _assetSize;

viewModel.RITLBridgeGetImageBlock = ^(NSArray <UIImage *> * images){
    
    //获得图片
    
};

viewModel.RITLBridgeGetImageDataBlock = ^(NSArray <NSData *> * datas){
  
    //可以进行数据上传操作..
    
    
};

 RITLPhotoNavigationViewController * viewController = [RITLPhotoNavigationViewController photosViewModelInstance:viewModel];

[self presentViewController:viewController animated:true completion:^{}];

ritlimagepickerdemo-master's People

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.