Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

支持单选,多选,视频和图片,多图合成幻灯片,视频剪辑

License

NotificationsYou must be signed in to change notification settings

Yvent/YVImagePickerController

Repository files navigation

iOS - 支持单选,多选,视频和图片,多图合成幻灯片,视频剪辑

image

Requirements

iOS 9.0+ Xcode 8.0+Swift 3.0+

Step1

pod 'YVImagePickerController' ,'~> 1.1.1'

Step2在plist文件中加入

 <key>NSPhotoLibraryUsageDescription</key>   <string>App需要您的同意,才能访问相册</string>

Step3

 import Photos

遵守协议 YVImagePickerControllerDelegate初始化

let pickerVC = YVImagePickerController()self.present(pickerVC, animated: true, completion: nil)

配置

yvmaxSelected多选时最大张数
yvcolumns每行列数
topViewColor导航栏背景色
yvmediaType 媒体类型:照片或视频 
yvIsMultiselect是否多选,默认单选 
selectedBtn_nimage多选时,未选中image(可选) 
selectedBtn_simage多选时,选中image(可选) 

实现代理方法

 func yvimagePickerController(_ picker: YVImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { }     func yvimagePickerControllerDidCancel(_ picker: YVImagePickerController) {}

问题

发现bug或好的建议欢迎issues or EmailYvente@163.com

About

支持单选,多选,视频和图片,多图合成幻灯片,视频剪辑

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp