Latest 1.0.3
Homepage https://github.com/RunsCode/Camera
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

A custom camera, the core function a little click to take pictures, long press the video

From CocoaPods

pod 'RunsCamera', '~> 1.0.3'
#import "ViewController.h"
#import "RunsCameraViewController.h"

@interface ViewController ()<RunsCameraControllerDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    RunsCameraViewController *cameraViewController = [RunsCameraViewController new];
    cameraViewController.delegate = self;
    [self presentViewController:cameraViewController animated:YES completion:nil];
}

#pragma mark -- RunsCameraControllerDelegate

- (void)cameraViewControllerDidDismissed:(UIViewController *)controller {
}

- (void)cameraViewControllerDidSelectedAlnbum:(UIViewController *)controller {
}

- (void)cameraViewController:(UIViewController *)controller captureStillImage:(UIImage *)image {
    [controller dismissViewControllerAnimated:YES completion:nil];
}

- (void)cameraViewController:(UIViewController *)controller captureVideoAsset:(RunsVideoAsset *)asset {
    [controller dismissViewControllerAnimated:YES completion:nil];
}

@end

Latest podspec

{
    "name": "RunsCamera",
    "version": "1.0.3",
    "summary": "A custom camera, the core function a little click to take pictures, long press the video.",
    "description": "A custom camera, the core function a little click to take pictures, long press the video.which implement by Objective-C.",
    "homepage": "https://github.com/RunsCode/Camera",
    "license": "MIT",
    "authors": {
        "dev_wang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/RunsCode/Camera.git",
        "tag": "1.0.3"
    },
    "source_files": "RunsCamera/Classes/**/*.{h,m}",
    "resources": "RunsCamera/Classes/camera.xcassets",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This