Latest 1.1.0
Homepage https://github.com/lincf0912/LFCameraPickerController
License MIT
Platforms ios 7.0, requires ARC
Dependencies SCRecorder
Authors
  • 依赖SCRecorder库
  • 支持拍照、录制视频(断点录制)
  • 媒体编辑(依赖LFMediaEditingController库,默认没有编辑功能)
  • 详细使用见LFCameraPickerController.h 的初始化方法

Installation 安装

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

调用代码

  • LFCameraPickerController *camera = [[LFCameraPickerController alloc] init];
  • camera.canPause = YES; //开启断点录制
  • camera.flash = YES; //允许调节闪光灯
  • [self presentViewController:camera animated:YES completion:nil];

  • 设置代理方法,按钮实现
  • camera.pickerDelegate;

Latest podspec

{
    "name": "LFCameraPickerController",
    "version": "1.1.0",
    "summary": "A clone of UIImagePickerController(UIImagePickerControllerSourceTypeCamera), support take photo and record video",
    "homepage": "https://github.com/lincf0912/LFCameraPickerController",
    "license": "MIT",
    "authors": {
        "lincf0912": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lincf0912/LFCameraPickerController.git",
        "tag": "1.1.0",
        "submodules": true
    },
    "requires_arc": true,
    "default_subspecs": "Core",
    "dependencies": {
        "SCRecorder": []
    },
    "subspecs": [
        {
            "name": "Core",
            "resources": "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/class/*.bundle",
            "source_files": [
                "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/class/*.{h,m}",
                "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/class/**/*.{h,m}"
            ],
            "public_header_files": "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/class/*.h",
            "dependencies": {
                "LFCameraPickerController/LFRecordButton": []
            }
        },
        {
            "name": "LFRecordButton",
            "source_files": "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/vendors/LFRecordButton/*.{h,m}",
            "public_header_files": "LFCameraPickerControllerDEMO/LFCameraPickerControllerDEMO/vendors/LFRecordButton/LFRecordButton.h"
        },
        {
            "name": "LFMediaEdit",
            "xcconfig": {
                "GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) LF_MEDIAEDIT=1"
            },
            "dependencies": {
                "LFCameraPickerController/Core": [],
                "LFMediaEditingController": []
            }
        }
    ]
}

Pin It on Pinterest

Share This