Latest 2.4.5
Homepage https://github.com/weaken000/WKPhotoAlbum
License MIT
Platforms ios 9.0
Frameworks Photos
Authors

0. 概述

WKPhotoAlbum是一个用于iOS的自定义相册选择器,UI上模仿了微信的相册选择器。

Requirement

iOS 9.0+

1. 实现功能

  • 系统的资源自定义集成
  • 图片与视频的选取
  • 自定义的媒体录制界面

    2. 使用方法

    2.1 回调方式

    UIViewController *next = [WKPhotoAlbum presentAlbumVCWithSelectBlock:^(NSArray * _Nonnull result) {
     NSLog(@"blockSelect--%@", result);
    } cancelBlock:^{
     NSLog(@"blockCancel");
    }];
    [WKPhotoAlbum setPhotoAlbumDelegate:self];
    UIViewController *next = [WKPhotoAlbum presentAlbumVC];

2.2 自定义配置属性

可在WKPhotoAlbumConfig类文件中查看所有可配置属性

//default is NO
@property (nonatomic, assign) BOOL isIncludeVideo;
//default is YES
@property (nonatomic, assign) BOOL isIncludeImage;
//default is 1
@property (nonatomic, assign) NSUInteger maxSelectCount;
//default is NO
@property (nonatomic, assign) BOOL canClip;
//default is YES
@property (nonatomic, assign) BOOL allowTakePicture;
//default is YES
@property (nonatomic, assign) BOOL allowTakeVideo;
...

3. Screen Shot

WKPhotoAlbumWKPhotoAlbum

4. 集成方式

cocoapods

 pod "WKPhotoAlbum", '2.4.5'

Latest podspec

{
    "name": "WKPhotoAlbum",
    "version": "2.4.5",
    "summary": "u81eau5b9au4e49u76f8u518cuff0cu63d0u4f9bu7167u7247u7684u7f16u8f91u548cu9009u53d6u4ee5u53cau89c6u9891u9009u53d6u529fu80fd",
    "homepage": "https://github.com/weaken000/WKPhotoAlbum",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "weaken": "[email protected]"
    },
    "source": {
        "git": "https://github.com/weaken000/WKPhotoAlbum.git",
        "tag": "2.4.5"
    },
    "source_files": "WKPhotoAlbum",
    "resources": "WKPhotoAlbum/Resources/WKPhotoAlbum.bundle",
    "frameworks": "Photos",
    "platforms": {
        "ios": "9.0"
    }
}

Pin It on Pinterest

Share This