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
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

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

License

NotificationsYou must be signed in to change notification settings

RainManGO/ZYImagePickerAndBrower

Repository files navigation

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

imageimage

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 Podfilepod 'ZYImagePickerAndBrower', '~> 0.8.0'
  2. Install the pod(s) by runningpod install.

pod demo地址

功能支持

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

  • 相册序号选择: 微信样式多选照片
  • 预览序号选择: 预览时可以序号选择
  • 预览缩略图和大图联动: 联动样式仿微信
  • 网络图片浏览: 有时需要处理服务器返回网络图片
  • 快速布局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: 修复预览之后,导航栏不见了问题。

License

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp