Giter Club home page Giter Club logo

myphotopickerdemo's Introduction

MyPhotoPickerDemo

模仿iOS系统照片手势滑动多选

滑动选择多个图片的基本实现 还有很多问题需要优化 而且很多方法没有进行封装

对Photos库没有接触,AssertLibrary的库虽然在iOS9.0 后废弃了,但是之前对这个库的了解甚少,花了一小时写了一个照片选择器的Demo来 看看性能等方面

代码写的很杂乱,没有整理,很多需要封装的类没有封装,数据模型也没有创建,完全是看UI效果吧

为了看到更好的效果,使用模拟器运行时,需要往模拟器里多拖入几张图片,这样滑动选择照片时的范围才更加大。

值得注意的是:滑动多项选择和滑动多项反选择均已实现,有一种情况未实现,即滑动时往回滑动的撤销动作未写,如果有需要这个功能的人,可以自己 加上,估计代码也不过几十行。

myphotopickerdemo's People

Contributors

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