luowenxing / Mtimagepicker
Licence: mit
A WeiXin like multiple imagepicker and video picker using either PhotoKit or AssetsLibrary
Stars: ✭ 79
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Mtimagepicker
ConvenientImagePicker
🏞🌅🌄🎇🌇🏙🌃🌉🌁the new iOS image picker. Beautiful, delicate, and customizable.
Stars: ✭ 44 (-44.3%)
Mutual labels: image-picker
Imagepicker
完全仿微信的图片选择,并且提供了多种图片加载接口,选择图片后可以旋转,可以裁剪成矩形或圆形,可以配置各种其他的参数
Stars: ✭ 4,225 (+5248.1%)
Mutual labels: image-picker
ChatViewController
💬 ChatViewController, ChatBar, ImagePicker like Slack Application. Message App written in Swift
Stars: ✭ 47 (-40.51%)
Mutual labels: image-picker
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+4534.18%)
Mutual labels: image-picker
React Native Syan Image Picker
React-Native 多图片选择 支持裁剪 压缩
Stars: ✭ 556 (+603.8%)
Mutual labels: image-picker
image-picka
A Firefox/Chrome extension helping you download images.
Stars: ✭ 114 (+44.3%)
Mutual labels: image-picker
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+417.72%)
Mutual labels: image-picker
Imagepicker
📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: ✭ 623 (+688.61%)
Mutual labels: image-picker
Abra
Your next favorite image and video picker from Gallery for Swift
Stars: ✭ 19 (-75.95%)
Mutual labels: image-picker
Chiliphotopicker
Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.
Stars: ✭ 333 (+321.52%)
Mutual labels: image-picker
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+6567.09%)
Mutual labels: image-picker
ProPicker
ProPicker is a file picker (image, video, file) library for Android. It helps you to pick any file and return the result in a convenient way
Stars: ✭ 25 (-68.35%)
Mutual labels: image-picker
React Native Image Picker
🌄 A React Native module that allows you to use native UI to select media from the device library or directly from the camera.
Stars: ✭ 7,431 (+9306.33%)
Mutual labels: image-picker
Gallerypicker
Gallery Picker allows you to design a custom gallery for image/ video picker in your android projects.
Stars: ✭ 76 (-3.8%)
Mutual labels: image-picker
Weex Image Crop Picker
iOS/Android image picker with support for camera, configurable compression, multiple images and cropping porting from
Stars: ✭ 42 (-46.84%)
Mutual labels: image-picker
Prismasimpleimagepicker
This is a copy of the Prisma APP. Reproduce Prisma custom camera, image picker and picture editor
Stars: ✭ 594 (+651.9%)
Mutual labels: image-picker
MTImagePicker
A WeiXin like multiple image and video picker which is compatible for iOS7+.You can use either ALAssetsLibrary
or Photos framework
by setting the source of MTImagePickerController
.
Demo
Requirement
- iOS7.0+
- Build success in Xcode 9.2 Swift 4.0
Installation
- There is no ohter dependency in
MTImagePicker
.Recommanded Simply drag theMTImagePicker/MTImagePicker
folder to your project. - MTImagePicker is also available through CocoaPods. However using CocoaPod in Swift project required dynamic framework therefore iOS8.0+ is needed.To install it, simply add the following line to your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'MTImagePicker', '~> 3.0.2'
Usage
- The MTImagePicker is similiar to
UIImagePickerController
.It's easy to use the image picker following the sample code in demo like below
let imagePicker = MTImagePickerController.instance
imagePicker.mediaTypes = [MTImagePickerMediaType.Photo,MTImagePickerMediaType.Video]
imagePicker.imagePickerDelegate = self
imagePicker.maxCount = 10 // max select count
imagePicker.defaultShowCameraRoll = true // when set to true would show Camera Roll Album like WeChat by default.
- You can use either
ALAssetsLibrary
orPhotos framework
by setting the source ofMTImagePickerController
//default is MTImagePickerSource.ALAsset
imagePicker.source = MTImagePickerSource.ALAsset
//imagePicker.source = MTImagePickerSource.Photos (Work on iOS8+)
- Call
presentViewController
self.presentViewController(imagePicker, animated: true, completion: nil)
- Implement the delegate method accordding to the
source
.
@objc protocol MTImagePickerControllerDelegate:NSObjectProtocol {
// Implement it when setting source to MTImagePickerSource.ALAsset
optional func imagePickerController(picker:MTImagePickerController, didFinishPickingWithAssetsModels models:[MTImagePickerAssetsModel])
// Implement it when setting source to MTImagePickerSource.Photos
@available(iOS 8.0, *)
optional func imagePickerController(picker:MTImagePickerController, didFinishPickingWithPhotosModels models:[MTImagePickerPhotosModel])
optional func imagePickerControllerDidCancel(picker: MTImagePickerController)
}
TODO
-
Add Albums selecting support.Done.
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].