Skip to content

lucascorrea/YCameraView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YCameraView

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

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
}

paypal

About

Custom Camera Controller

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.5%
  • Ruby 4.5%