Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号

License

Notifications You must be signed in to change notification settings

RainManGO/ZYImagePickerAndBrower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
nvr
Jan 19, 2019
de3d256 · Jan 19, 2019

History

35 Commits
Jan 19, 2019
Jan 19, 2019
Aug 17, 2018
Aug 17, 2018
Jan 19, 2019
Aug 20, 2018
Jan 14, 2019
Jan 5, 2019
Aug 20, 2018
Aug 21, 2018
Aug 21, 2018

Repository files navigation

ZYImagePickerAndBrower

ZYImagePickerAndBrower 是一个模仿微信相册多选照片的一个控件。注意了微信相册的一些细节,比如序号,最大选择之后照片变灰,浏览缩略图等等。

image image

Important(非常重要)

这只是一个库文件地址,资源路径不正确,演示不全面。支持pod 请去demo地址查看项目细节。 demo移步

Requirements

ZYImagePickerAndBrower 支持iOS8+

  • Photo.framework
  • UIKit.framework

Adding ZYImagePickerAndBrower to your project

CocoaPods

  1. Add a pod entry for ZYImagePickerAndBrower to your Podfile pod 'ZYImagePickerAndBrower', '~> 0.8.0'
  2. Install the pod(s) by running pod install.

pod demo地址

功能支持

==============

  • 相册序号选择: 微信样式多选照片
  • 预览序号选择: 预览时可以序号选择
  • 预览缩略图和大图联动: 联动样式仿微信
  • 网络图片浏览: 有时需要处理服务器返回网络图片
  • 快速布局UI: 只需集成 ZYImagePickerLayoutView 可自动将照片布局

使用

设置主题颜色

ZYPhotoAlbumSkinColor = UIColor.orange

选照片

 let photoAlbumVC = ZYPhotoNavigationViewController(photoAlbumDelegate: self, photoAlbumType: .selectPhoto)    //初始化需要设置代理对象
        photoAlbumVC.maxSelectCount = 9   //最大可选择张数
        self.navigationController?.present(photoAlbumVC, animated: true, completion: nil)

ZYPhotoAlbumProtocol回调

 func photoAlbum(selectPhotos: [ZYPhotoModel]) {
        //选择的照片之后去layoutView显示
        let imageArray = selectPhotos.map { (model) -> UIImage in
            return model.thumbnailImage!
        }
        imagePickerView.dataSource = imageArray
        imagePickerView.numberOfLine = 4
        imagePickerView.reloadView()
        imagePickerView.addCallBack = { () in
            self.goPickerController()
        }
 }

更新

==============

  • 0.8.0: 修复无法返回相册问题

  • 0.7.0: 修复预览之后,导航栏不见了问题。

License

About

2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published