Latest 1.2.1
Homepage https://github.com/lincf0912/LFPhotoBrowser
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage/Core
Authors
  • 图片浏览器(更多请见LFPhotoBrowser.h)
  • 由于DEMO使用了第三方框架(SDWebImage、AFNetworking),请使用项目前执行pod install

Installation 安装

  • CocoaPods:pod ‘LFPhotoBrowser’
  • 手动导入:将LFPhotoBrowserclass文件夹拽入项目中,导入头文件:#import "LFPhotoBrowser.h",依赖SDWebImage

调用代码

  • LFPhotoBrowser *pbVC = [[LFPhotoBrowser alloc] initWithImageArray:@[PhotoInfo]];
  • [pbVC showPhotoBrowser];

  • 设置代理方法,按钮实现
  • pbVC.delegate;

图片展示

image

image

视频展示

image

Latest podspec

{
    "name": "LFPhotoBrowser",
    "version": "1.2.1",
    "summary": "A clone of UIImagePickerController, support picking multiple photosu3001 video and edit photo",
    "homepage": "https://github.com/lincf0912/LFPhotoBrowser",
    "license": "MIT",
    "authors": {
        "lincf0912": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lincf0912/LFPhotoBrowser.git",
        "tag": "1.2.1",
        "submodules": true
    },
    "requires_arc": true,
    "resources": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/*.bundle",
    "source_files": [
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/*.{h,m}",
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/**/*.{h,m}"
    ],
    "public_header_files": [
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/*.h",
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/model/*.h",
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/model/**/*.h",
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/type/*.h",
        "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/class/category/UIImage/UIImage+LFPB_Format.h"
    ],
    "dependencies": {
        "SDWebImage/Core": [
            "~> 3.8.2"
        ]
    },
    "subspecs": [
        {
            "name": "LFVideoPlayer",
            "source_files": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFVideoPlayer/*.{h,m}",
            "public_header_files": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFVideoPlayer/*.h"
        },
        {
            "name": "LFActionSheet",
            "source_files": [
                "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFActionSheet/*.{h,m}",
                "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFActionSheet/**/*.{h,m}"
            ],
            "public_header_files": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFActionSheet/LFActionSheet.h"
        },
        {
            "name": "LFLoadingView",
            "source_files": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFLoadingView/*.{h,m}",
            "public_header_files": "LFPhotoBrowserDEMO/LFPhotoBrowserDEMO/vendors/LFLoadingView/*.h"
        }
    ]
}

Pin It on Pinterest

Share This