Latest 1.3.4.1
Homepage https://github.com/lincf0912/LFImagePickerController
License MIT
Platforms ios 7.0, requires ARC
Authors
  • 项目UI与资源方面部分使用TZImagePickerController项目,感谢分享。
  • 兼容非系统相册的调用方式
  • 支持Gif(压缩)、视频(压缩)、图片(压缩)
  • 图片编辑、视频编辑(依赖LFMediaEditingController库,默认没有编辑功能)
  • 支持iPhone、iPad 横屏
  • 详细使用见LFImagePickerController.h 的初始化方法

Installation 安装

  • CocoaPods:pod ‘LFImagePickerController’
  • 手动导入:将LFImagePickerControllerclass文件夹拽入项目中,导入头文件:#import "LFImagePickerController.h"
  • 开启编辑功能:pod ‘LFImagePickerController/LFMediaEdit’

调用代码

  • LFImagePickerController *imagePicker = [[LFImagePickerController alloc] initWithMaxImagesCount:9 delegate:self];
  • //根据需求设置
  • imagePicker.allowTakePicture = NO; //不显示拍照按钮
  • imagePicker.doneBtnTitleStr = @"发送"; //最终确定按钮名称
  • [self presentViewController:imagePicker animated:YES completion:nil];

图片展示

image

Latest podspec

{
    "name": "LFImagePickerController",
    "version": "1.3.4.1",
    "summary": "A clone of UIImagePickerController, support picking multiple photosu3001 video and edit photo",
    "homepage": "https://github.com/lincf0912/LFImagePickerController",
    "license": "MIT",
    "authors": {
        "lincf0912": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lincf0912/LFImagePickerController.git",
        "tag": "1.3.4.1",
        "submodules": true
    },
    "requires_arc": true,
    "default_subspecs": "Core",
    "subspecs": [
        {
            "name": "Core",
            "resources": "LFImagePickerController/LFImagePickerController/class/*.bundle",
            "source_files": [
                "LFImagePickerController/LFImagePickerController/class/*.{h,m}",
                "LFImagePickerController/LFImagePickerController/class/**/*.{h,m}"
            ],
            "public_header_files": [
                "LFImagePickerController/LFImagePickerController/class/*.h",
                "LFImagePickerController/LFImagePickerController/class/manager/*.h",
                "LFImagePickerController/LFImagePickerController/class/model/*.h",
                "LFImagePickerController/LFImagePickerController/class/model/**/*.h",
                "LFImagePickerController/LFImagePickerController/class/define/LFImagePickerPublicHeader.h"
            ],
            "dependencies": {
                "LFImagePickerController/LFGifPlayer": [],
                "LFImagePickerController/LFToGIF": []
            }
        },
        {
            "name": "LFGifPlayer",
            "source_files": "LFImagePickerController/LFImagePickerController/vendors/LFGifPlayer/*.{h,m}",
            "public_header_files": "LFImagePickerController/LFImagePickerController/vendors/LFGifPlayer/LFGifPlayerManager.h"
        },
        {
            "name": "LFToGIF",
            "source_files": "LFImagePickerController/LFImagePickerController/vendors/LFToGIF/*.{h,m}",
            "public_header_files": "LFImagePickerController/LFImagePickerController/vendors/LFToGIF/LFToGIF.h"
        },
        {
            "name": "LFMediaEdit",
            "xcconfig": {
                "GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) LF_MEDIAEDIT=1"
            },
            "dependencies": {
                "LFImagePickerController/Core": [],
                "LFMediaEditingController": []
            }
        }
    ]
}

Pin It on Pinterest

Share This