Latest 1.1.0
Homepage https://github.com/yuvirajsinh/YCameraView
License MIT
Platforms ios 7.0, requires ARC
Frameworks AVFoundation, ImageIO, CoreMotion

Version License

Custom Camera Controller

YCameraviewController is a custom Image picker controller that allows you to quickly switch between Camera and iPhone Photo Library.
This Controller only useful for capturing Square Image.

Required Framework

AVFoundation.framework

ImageIO.framework

CoreMotion.framework

Installation

CocoaPods

pod 'YCameraView', '~> 1.1.0'

How to Use it

Import "YCameraViewController.h" in your ViewController.h file where you want to use this.

#import "YCameraViewController.h"

@interface ViewController : UIViewController <YCameraViewControllerDelegate>

@end

In ViewController.m file

To open YCameraViewController

YCameraViewController *camController = [[YCameraViewController alloc] initWithNibName:@"YCameraViewController" bundle:nil];
camController.delegate=self;
[self presentViewController:camController animated:YES completion:^{
    // completion code
}];

Using YCameraViewControllerDelegate

-(void)didFinishPickingImage:(UIImage *)image{
    // Use image as per your need
}
-(void)yCameraControllerdidSkipped{
    // Called when user clicks on Skip button on YCameraViewController view
}
-(void)yCameraControllerDidCancel{
    // Called when user clicks on "X" button to close YCameraViewController
}

Latest podspec

{
    "name": "YCameraView",
    "version": "1.1.0",
    "summary": "Custom Camera Controller similar to the camera View on Instagram.",
    "description": "  YCameraViewController is a custom Image picker controller that allows you to quickly switch between Camera and iPhone Photo Library. This Controller only useful for capturing Square Image.n",
    "homepage": "https://github.com/yuvirajsinh/YCameraView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "yuvirajsinh",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/yuvirajsinh/YCameraView.git",
        "tag": "1.1.0"
    },
    "source_files": "YCameraViewController/**/*.{h,m}",
    "resources": [
        "YCameraViewController/UI/**/*.png",
        "YCameraViewController/YCameraViewController.xib"
    ],
    "frameworks": [
        "AVFoundation",
        "ImageIO",
        "CoreMotion"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This