WJCamera 1.2.0

WJCamera 1.2.0

wwj 维护。



WJCamera 1.2.0

  • scorpion

WJCamera

CI Status Version License Platform

iOS 相机 点击拍照,长按录像

示例

1、权限申请 - 在 info.plist 中添加以下配置

隐私 - 摄像头使用描述

隐私 - 麦克风使用描述

隐私 - 相册使用描述

2、使用

#import "WJCameraController.h"

//创建

WJCameraConfig *config = [WJCameraConfig config];

config.Max_time = 10; // 录制时长,默认 15 秒

WJCameraController *wjc =[WJCameraController buildWithConfig:config];

wjc.delegate = self;

[self presentViewController:wjc animated:YES completion:nil];

//通过 delegate 得到拍摄的照片或视频。

-(void)completeWithAsset:(PHAsset*)asset image:(UIImage *)image videoPath:(NSURL *)videoPath{ }

要求

安装

WJCamera 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中

pod 'WJCamera'

作者

蝎子,[email protected]

许可证

WJCamera可使用MIT许可证。更多信息请参阅LICENSE文件。