Code Monkey home page Code Monkey logo

mohsinalimat / lqphotopickerdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hexin199596/lqphotopickerdemo

1.0 2.0 0.0 4.91 MB

一个功能强大的图片选择器(类似QQ图片选择器),支持即时拍照存储立即选择,本地相册图片选择,图片个数自定义上限,图片选择记忆选择的图片,十分完美,还支持点击查看放大图片,获取图片的data数据时,对原图片进行保真压缩,大小为1M以内,方便大多数项目可以直接使用,提供源码欢迎大家提出问题和一起优化,该工具是根据一些开源项目的优秀代码筛选和自己的修改,做的一套能够满足绝大部分需求的选择图片并上传服务器的工具,这是对工具的使用demo。觉得适用请给星,如果效果可以,后续将持续维护和更新。(关于有的朋友提出点击几个大图内存飙升的问题,是由于项目用到了SDWebimage是老版本的,大家可自行更新)

Objective-C 99.88% C 0.12%

lqphotopickerdemo's Introduction

LQ系列 -- APP 项目模板 V1.0(高阶)

项目开发模板-按需登录型应用 - https://github.com/XZTLLQ/LQProject-NoLogin

项目开发模板-强制登录型应用 - https://github.com/XZTLLQ/LQProject-MustLogin

注意:此模板是自己的设计,虽然称不上是神作,但是有很多地方有非常好的设计点能帮助开发者快速构建项目,用过的都表示赞👍 !!!

LQ系列--UI

LQPhotoPickerDemo - https://github.com/XZTLLQ/LQClass (可节约项目大量细节调控时间,体验好!)

LQPhotoPickerDemo - https://github.com/XZTLLQ/LQPhotoPickerDemo (选择图片上传)

LQIMInputView - https://github.com/XZTLLQ/LQIMInputView (聊天页面工具栏)

LQPhotoPickerDemo

一个功能强大的图片选择器(类似QQ图片选择器),支持即时拍照存储立即选择,本地相册图片选择,图片个数自定义上限,图片选择记忆选择的图片,十分完美,还支持点击查看放大图片,获取图片的data数据时,对原图片进行保真压缩,大小为1M以内,方便大多数项目可以直接使用,提供源码欢迎大家提出问题和一起优化,该工具是根据一些开源项目的优秀代码筛选和自己的处理,做的一套能够满足绝大部分需求的选择图片并上传服务器的工具,该项目是对工具的使用

使用方法

 例子中使用的是storyboard方式加载,可以直接拷贝storyboard使用,然后调用:

  UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"StoryboardName" bundle:nil];  
  VCClassName *VC = [storyBoard instantiateViewControllerWithIdentifier:@"VCClassName"];
  //跳转

Demo中的选择图片是个collectonView主要相关代码是:

    /**
    *  依次设置
    */
   self.LQPhotoPicker_superView = _scrollView;
   
   self.LQPhotoPicker_imgMaxCount = 10;
   
   [self LQPhotoPicker_initPickerView];
   
   self.LQPhotoPicker_delegate = self;//LQPhotoPickerViewDelegate
   
   //photoPicker
   [self LQPhotoPicker_updatePickerViewFrameY:200];

LQPhotoPickerViewDelegate:

    - (void)LQPhotoPicker_pickerViewFrameChanged{
        //[self LQPhotoPicker_updatePickerViewFrameY:200];
    }

lqphotopickerdemo's People

Contributors

xztl avatar ymoyao avatar

Stargazers

 avatar

Watchers

 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.