Latest 1.1.2
Homepage https://github.com/lincf0912/LFMediaEditingController
License MIT
Platforms ios 7.0, requires ARC
Authors
  • 图片编辑 (详细使用见LFPhotoEditingController.h 的初始化方法)
  • 视频编辑 (详细使用见LFVideoEditingController.h 的初始化方法)
  • (因数据可以多次重复编辑,暂时未能处理横竖屏切换。)

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

  • 视频编辑
  • LFVideoEditingController *lfVideoEditVC = [[LFVideoEditingController alloc] init];
  • lfVideoEditVC.delegate = self;
  • if (self.videoEdit) {
  • lfVideoEditVC.videoEdit = self.videoEdit;
  • } else {
  • [lfVideoEditVC setVideoURL:self.url placeholderImage:nil];
  • }
  • [self.navigationController setNavigationBarHidden:YES]; //隐藏导航栏(方式因项目自身适配)
  • [self.navigationController pushViewController:lfPhotoEditVC animated:NO];

图片展示

image

Latest podspec

{
    "name": "LFMediaEditingController",
    "version": "1.1.2",
    "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.1.2",
        "submodules": true
    },
    "requires_arc": true,
    "source_files": "LFMediaEditingController/class/*.{h,m}",
    "public_header_files": "LFMediaEditingController/class/*.h",
    "subspecs": [
        {
            "name": "LFPhotoEditingController",
            "resources": "LFMediaEditingController/class/common/*.bundle",
            "source_files": [
                "LFMediaEditingController/class/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/**/*.{h,m}",
                "LFMediaEditingController/class/common/**/*.{h,m}"
            ],
            "public_header_files": [
                "LFMediaEditingController/class/*.h",
                "LFMediaEditingController/class/LFPhotoEditingController/controller/*.h",
                "LFMediaEditingController/class/LFPhotoEditingController/model/*.h"
            ],
            "dependencies": {
                "LFMediaEditingController/JRPickColorView": []
            }
        },
        {
            "name": "LFVideoEditingController",
            "resources": "LFMediaEditingController/class/common/*.bundle",
            "source_files": [
                "LFMediaEditingController/class/*.{h,m}",
                "LFMediaEditingController/class/LFVideoEditingController/**/*.{h,m}",
                "LFMediaEditingController/class/common/**/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/view/model/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/view/other/**/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/view/subView/*.{h,m}",
                "LFMediaEditingController/class/LFPhotoEditingController/view/toolBar/*.{h,m}"
            ],
            "public_header_files": [
                "LFMediaEditingController/class/*.h",
                "LFMediaEditingController/class/LFVideoEditingController/controller/*.h",
                "LFMediaEditingController/class/LFVideoEditingController/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