Latest 1.0.5
Homepage https://github.com/lincf0912/LFMediaEditingController
License MIT
Platforms ios 7.0, requires ARC
Authors
  • 图片编辑 (详细使用见LFPhotoEditingController.h 的初始化方法)
  • 视频编辑 (详细使用见LFVideoEditingController.h 的初始化方法)

Warning 注意

  • 暂时不能与LFImagePickerController框架并用,2者选其1.

Installation 安装

  • CocoaPods:pod ‘LFMediaEditingController’
  • 手动导入:将LFMediaEditingControllerclass文件夹拽入项目中,导入头文件:#import "LFPhotoEditingController.h" #import "LFVideoEditingController.h"

调用代码

  • 图片编辑
  • LFPhotoEditingController *lfPhotoEditVC = [[LFPhotoEditingController alloc] init];
  • lfPhotoEditVC.delegate = self;
  • if (self.photoEdit) {
  • lfPhotoEditVC.photoEdit = self.photoEdit;
  • } else {
  • lfPhotoEditVC.editImage = self.imageView.image;
  • }
  • [self.navigationController setNavigationBarHidden:YES]; //隐藏导航栏(方式因项目自身适配)
  • [self.navigationController pushViewController:lfPhotoEditVC animated:NO];

  • 视频编辑

图片展示

image

Latest podspec

{
    "name": "LFMediaEditingController",
    "version": "1.0.5",
    "summary": "Media Editor (edit photou3001edit video)",
    "homepage": "https://github.com/lincf0912/LFMediaEditingController",
    "license": "MIT",
    "authors": {
        "lincf0912": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lincf0912/LFMediaEditingController.git",
        "tag": "1.0.5",
        "submodules": true
    },
    "requires_arc": true,
    "source_files": "LFMediaEditingController/class/*.{h,m}",
    "public_header_files": "LFMediaEditingController/class/*.h",
    "subspecs": [
        {
            "name": "LFPhotoEditingController",
            "resources": "LFMediaEditingController/class/LFPhotoEditingController/*.bundle",
            "source_files": [
                "LFMediaEditingController/class/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/**/*.{h,m}"
            ],
            "public_header_files": [
                "LFMediaEditingController/class/*.h",
                "LFMediaEditingController/class/LFPhotoEditingController/controller/*.h",
                "LFMediaEditingController/class/LFPhotoEditingController/model/*.h"
            ],
            "dependencies": {
                "LFMediaEditingController/JRPickColorView": []
            }
        },
        {
            "name": "JRPickColorView",
            "source_files": "LFMediaEditingController/class/vendors/JRPickColorView/*.{h,m}",
            "public_header_files": "LFMediaEditingController/class/vendors/JRPickColorView/JRPickColorView.h"
        }
    ]
}

Pin It on Pinterest

Share This