This repository was archived by the owner on Mar 4, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork12
2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号
License
NotificationsYou must be signed in to change notification settings
RainManGO/ZYImagePickerAndBrower
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ZYImagePickerAndBrower
是一个模仿微信相册多选照片的一个控件。注意了微信相册的一些细节,比如序号,最大选择之后照片变灰,浏览缩略图等等。
这只是一个库文件地址,资源路径不正确,演示不全面。支持pod 请去demo地址查看项目细节。demo移步
ZYImagePickerAndBrower
支持iOS8+
- Photo.framework
- UIKit.framework
- Add a pod entry for ZYImagePickerAndBrower to your Podfile
pod 'ZYImagePickerAndBrower', '~> 0.8.0'
- Install the pod(s) by running
pod install
.
==============
- 相册序号选择: 微信样式多选照片
- 预览序号选择: 预览时可以序号选择
- 预览缩略图和大图联动: 联动样式仿微信
- 网络图片浏览: 有时需要处理服务器返回网络图片
- 快速布局UI: 只需集成ZYImagePickerLayoutView 可自动将照片布局
设置主题颜色
ZYPhotoAlbumSkinColor=UIColor.orange
选照片
letphotoAlbumVC=ZYPhotoNavigationViewController(photoAlbumDelegate:self, photoAlbumType:.selectPhoto) //初始化需要设置代理对象 photoAlbumVC.maxSelectCount=9 //最大可选择张数self.navigationController?.present(photoAlbumVC, animated:true, completion:nil)
ZYPhotoAlbumProtocol回调
func photoAlbum(selectPhotos:[ZYPhotoModel]){ //选择的照片之后去layoutView显示letimageArray= selectPhotos.map{(model)->UIImageinreturn model.thumbnailImage!} imagePickerView.dataSource= imageArray imagePickerView.numberOfLine=4 imagePickerView.reloadView() imagePickerView.addCallBack={()inself.goPickerController()}}
==============
0.8.0: 修复无法返回相册问题
0.7.0: 修复预览之后,导航栏不见了问题。
About
2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published