Latest 0.0.1
Homepage https://github.com/sfldzh/SRAlbum
License MIT
Platforms ios 8.0
Authors

*自定义相册,带拍照、录像,图片处理(GPUImage),相册获取方式有照片和视频混合获取,照片获取,视频获取。拍照方式是自定义的AVCapture,轻触拍照,按住摄像,拍摄后保存到本地相册。选择照片后使用GPUimage来处理图片。这个是自定义,可以自己添加其他的编辑方式,视频的选择后做了压缩处理。视频的很小,可以直接上传。

imageimage
imageimage

使用方法

SRDeviceType deviceType = SRDeviceTypeLibrary;
SRAssetType assetType = SRAssetTypeNone;
SRAlbumViewController *vc = [[SRAlbumViewController alloc] initWithDeviceType:deviceType];
vc.albumDelegate = self;
vc.assetType = assetType;
vc.maxItem = 9;
vc.maxlength = 500*1024;
vc.isEidt = isEidt;
vc.isShowPicList = YES;
[self presentViewController:vc animated:YES completion:nil];

资源类型 assetType SRAssetTypeNone 未知资源类型,SRAssetTypePic 图片资源类型, SRAssetTypeVideo 视频资源类型
最多选择照片张数 maxItem 默认9张。
maxlength 照片最大内存大小,不设置不压缩。
isEidt是否编辑
isShowPicList是否直接显示图片列表

回调方法

相册照片获取
- (void)srAlbumPickerController:(SRAlbumViewController *)picker didFinishPickingImages:(NSArray *)images

相册视频获取
- (void)srAlbumPickerController:(SRAlbumViewController *)picker didFinishPickingVedios:(NSArray *)vedios

Latest podspec

{
    "name": "SRAlbum",
    "version": "0.0.1",
    "summary": "u76f8u518cu548cu76f8u673au7684u8c03u7528u63a7u4ef6.",
    "homepage": "https://github.com/sfldzh/SRAlbum",
    "license": "MIT",
    "authors": {
        "u65bdu5cf0u78ca": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/sfldzh/SRAlbum.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "SRAlbum",
        "SRAlbumClass/**/*.{h,m}"
    ],
    "exclude_files": "SRAlbum/Exclude"
}

Pin It on Pinterest

Share This