Latest 0.0.1
Homepage https://github.com/HelloTime/TSAlbum
License MIT
Platforms ios 8.0, requires ARC
Authors

TSPhotoBrow

Photos.framework封装的图片选择浏览器,适配iOS8以上
觉得好用的话,右上角给颗星星🙏🙏🙏

QQ20170622-114725-HD

使用方法

- (void)localPhoto
{
    __weak typeof(self)weakSelf = self;
    // --检查相册权限
    [TSCameraHelper checkPhotoLibraryAuthorizationStatus:^(BOOL granted) {
        if (granted) {
            // --设置图片回调
            [TSPhotoManager sharedInstance].imageCallBack = ^(NSArray<UIImage *> *images) {
                [weakSelf.images addObjectsFromArray:images];
                [weakSelf updateCollectionViewHeight];

            };
            // --设置Data回调
            [TSPhotoManager sharedInstance].imageDataCallBack = ^(NSArray<NSData *> *imageDatas) {

            };
            // --设置需要的图片尺寸
            [TSPhotoManager sharedInstance].photoSize = CGSizeMake(PhotoItemWH, PhotoItemWH);
            // --设置图片数量
            [TSPhotoManager sharedInstance].maxPhotoCount = weakSelf.maxImageCount - weakSelf.images.count;
            // --跳转相册
            [weakSelf.delegateViewController presentViewController:[TSPhotoNavigationController new] animated:YES completion:nil];
        }
    }];
}

Latest podspec

{
    "name": "TSAlbum",
    "version": "0.0.1",
    "summary": "TSAlbum",
    "description": "u56feu7247u9009u62e9u6d4fu89c8u5668",
    "homepage": "https://github.com/HelloTime/TSAlbum",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ken": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/HelloTime/TSAlbum.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "TSAlbum",
        "TSAlbum/**/*.{h,m}"
    ],
    "resources": "TSAlbum/**/*.png",
    "requires_arc": true
}

Pin It on Pinterest

Share This