All Projects → youngwifemoliy → MLDPhotoManager

youngwifemoliy / MLDPhotoManager

Licence: Apache-2.0 license
弹出AlertController让用户选择相机还是相册.基于@gang544043963大神的LGPhotoBrowser项目再次封装

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to MLDPhotoManager

Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (+468.42%)
Mutual labels:  picker, photo
HXPHPicker
Photo/Video Selector-Supports LivePhoto, GIF selection, online download of resources on iCloud, and editing of photos/videos
Stars: ✭ 228 (+1100%)
Mutual labels:  picker, photo
JKPhotoBrowser
高仿微信、iOS10 相册的图片浏览器,具备拖拽缩放、渐变效果
Stars: ✭ 16 (-15.79%)
Mutual labels:  photo, photobrowser
Lgphotobrowser
照片浏览器,相册选择器,自定义照相机(支持单拍、连拍)
Stars: ✭ 527 (+2673.68%)
Mutual labels:  picker, photo
Assetspickerviewcontroller
Powerfully Customizable - Multiple Photo & Video Picker Controller
Stars: ✭ 321 (+1589.47%)
Mutual labels:  picker, photo
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (+1400%)
Mutual labels:  picker, photo
GWLPhotoSelector
相册照片多张选择控件
Stars: ✭ 50 (+163.16%)
Mutual labels:  picker, photo
Flutter photo manager
Provide flutter with the ability to manage photos.
Stars: ✭ 294 (+1447.37%)
Mutual labels:  picker, photo
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+19168.42%)
Mutual labels:  picker, photo
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+12336.84%)
Mutual labels:  picker, photo
gephi twitter media downloader
A small script designed to take either a .csv of Tweet ids, or the export from Gephi's TwitterStreamingImporter Plugin and download related Tweet media.
Stars: ✭ 41 (+115.79%)
Mutual labels:  photo
react-calendar-datetime-picker
A simple and fast date and time picker component for React
Stars: ✭ 58 (+205.26%)
Mutual labels:  picker
vue-list-picker
Just a simple list picker component made with Vue.js (works with Vue 2 & 3)
Stars: ✭ 14 (-26.32%)
Mutual labels:  picker
csc picker
A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
Stars: ✭ 25 (+31.58%)
Mutual labels:  picker
MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (+347.37%)
Mutual labels:  photobrowser
quasar-ui-qiconpicker
QIconPicker - Quasar App Extension
Stars: ✭ 49 (+157.89%)
Mutual labels:  picker
photos
"Fx Fotos" is an opensource gallery app in react native with the same smoothness and features of Google Photos and Apple Photos. It is backend gnostic and connects to decentralized backends like "box", "Dfinity", "Filecoin" and "Crust".
Stars: ✭ 620 (+3163.16%)
Mutual labels:  photo
meiupic
简洁好用的多用户图片社区。
Stars: ✭ 165 (+768.42%)
Mutual labels:  photo
Random-Name-Picker
Simple, beautiful Android app to help you choose from a list of names at random. Downloaded 560,000+ times on Google Play with a 4.5+ rating after 3,500+ reviews.
Stars: ✭ 37 (+94.74%)
Mutual labels:  picker
md2mld
Little cli to convert md files into mld files
Stars: ✭ 24 (+26.32%)
Mutual labels:  mld

MLDPhotoManager


20171013更新说明:

  • 优化:不再显示照片数为0的相册
  • 修复:issues #1在一个相册内选够9张,换到另一个相册,再换回来,取消之前选中项,再选时会提示数量已满
  • 增加:plist里面的相册相机权限(之前忘记了😆)

20170628更新说明:

  • 更新了api增加了最大张数的参数

基于@gang544043963大神的LGPhotoBrowser项目再次封装的

111

项目初衷

本身LGPhotoBrowser已经很是完美了,完成了很多我们的需求,但是在我的项目中会多次出现AlertController让用户选择相机还是相册这种需求实例.在这个基础上想到了再次封装.

用法

只需要将MLDPhotoManager拖入项目中即可

[MLDPhotoManager showPhotoManager:sender
                withMaxImageCount:9
                  withCameraImage:^(UIImage *cameraImage)
 {
     NSLog(@"cameraImage==%@",cameraImage);
 }
                   withAlbumArray:^(NSArray *albumArray)
 {
     NSLog(@"albumArray==%@",albumArray);
 }];

基于Block方便管理

说明

+ (void)showPhotoManager:(UIView *)carryView
       withMaxImageCount:(NSInteger)maxCount
         withCameraImage:(void(^)(UIImage *cameraImage))cameraImage
          withAlbumArray:(void(^)(NSArray *albumArray))albumArray

其中(UIView *)carryView这个参数要说明一下. 方法是直接呼出了UIAlertController但是在 iPadUIAlertController不能自下而上的直接弹出,需要一个停靠的View所以需要告诉控制器是哪个View响应了这个UIAlertController.

eg:你是按了一个 Button 想呼出UIAlertController那么这个 Button 就是 carryView

注意

LGPhotoBrowser项目已经集成了DACircularProgress SDWebImage如果项目中有这两个库的童鞋可以删除. 位置 LGPhotoBrowser-->Classes-->Third

本项目应用于iOS 9+

再次鸣谢

再次鸣谢@gang544043963大神的LGPhotoBrowser项目,从这个项目中学习到了很多东西.👍👍👍

在这里找到我

E-Mail: [email protected]

Weibo: @MoliySDev

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].