Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RainManGO/ZYImagePickerAndBrower
2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号
https://github.com/RainManGO/ZYImagePickerAndBrower
imagebrower imagepicker wechat wxalbum wximagepicker
Last synced: about 2 months ago
JSON representation
2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号
- Host: GitHub
- URL: https://github.com/RainManGO/ZYImagePickerAndBrower
- Owner: RainManGO
- License: mit
- Archived: true
- Created: 2018-08-20T08:28:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T04:38:09.000Z (almost 6 years ago)
- Last Synced: 2024-09-21T02:29:53.111Z (4 months ago)
- Topics: imagebrower, imagepicker, wechat, wxalbum, wximagepicker
- Language: Swift
- Homepage:
- Size: 7.19 MB
- Stars: 187
- Watchers: 4
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - ZYImagePickerAndBrower - 2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号 (iOS / PhotoPicker)
- awesome - ZYImagePickerAndBrower - 2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号 (iOS / PhotoPicker)
README
# ZYImagePickerAndBrower
`ZYImagePickerAndBrower` 是一个模仿微信相册多选照片的一个控件。注意了微信相册的一些细节,比如序号,最大选择之后照片变灰,浏览缩略图等等。
![image](https://github.com/RainManGO/ZYImagePickerAndBrower/blob/master/imagePickerDemo1.gif)
![image](https://github.com/RainManGO/ZYImagePickerAndBrower/blob/master/imagePickerDemo2.gif)## Important(非常重要)
这只是一个库文件地址,资源路径不正确,演示不全面。支持pod 请去demo地址查看项目细节。
[demo移步](https://github.com/RainManGO/ZYimagePickerPodDemo)## 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地址](https://github.com/RainManGO/ZYimagePickerPodDemo)
## 功能支持
==============
- **相册序号选择**: 微信样式多选照片
- **预览序号选择**: 预览时可以序号选择
- **预览缩略图和大图联动**: 联动样式仿微信
- **网络图片浏览**: 有时需要处理服务器返回网络图片
- **快速布局UI**: 只需集成 [ZYImagePickerLayoutView](https://github.com/RainManGO/ZYImagePickerLayoutView) 可自动将照片布局## 使用
设置主题颜色
```swift
ZYPhotoAlbumSkinColor = UIColor.orange
```选照片
```swift
let photoAlbumVC = ZYPhotoNavigationViewController(photoAlbumDelegate: self, photoAlbumType: .selectPhoto) //初始化需要设置代理对象
photoAlbumVC.maxSelectCount = 9 //最大可选择张数
self.navigationController?.present(photoAlbumVC, animated: true, completion: nil)
```ZYPhotoAlbumProtocol回调
```swift
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