Latest 0.3.0
Homepage https://github.com/billinghamj/JBCameraView
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit, AVFoundation, CoreMedia, CoreGraphics
Authors ,

JBCameraView

UIView to show the camera, take a picture, preview it, return UIImage.

Even though an UIImagePickerController allows a custom overlay to override the
default camera controls, it gives you no control over its camera bounds. Instead
it captures a UIImage in full camera resolution, giving you the option to edit
as a second step.

Note: as of v0.3.0, you must specify the camera position before the camera will
activate.

Installation

pod 'JBCameraView'

Usage

Interface Builder

  • Drag a UIView into the interface and set its type to JBCameraView
  • Set its delegate to a class that implements JBCameraViewDelegate
  • Set the preferred camera position (will failover to the other one)
  • Call takePicture on JBCameraView the UIImage on your delegate

Code

JBCameraView *cameraView = [[JBCameraView alloc] initWithFrame:CGRect(320, 320)];
cameraView.delegate = self;
cameraView.position = JBCameraViewPositionBack;

[cameraView takePicture];

Support

Please open an issue on this repository.

Authors

License

MIT licensed – see LICENSE file

Latest podspec

{
    "name": "JBCameraView",
    "version": "0.3.0",
    "summary": "UIView to show the camera, take a picture, preview it, return UIImage",
    "homepage": "https://github.com/billinghamj/JBCameraView",
    "license": "MIT",
    "authors": {
        "James Billingham": "[email protected]",
        "Markos Charatzas": "[email protected]"
    },
    "source": {
        "git": "https://github.com/billinghamj/JBCameraView.git",
        "tag": "v0.3.0"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "JBCameraView/*.{h,m}",
    "public_header_files": "JBCameraView/*.h",
    "frameworks": [
        "Foundation",
        "UIKit",
        "AVFoundation",
        "CoreMedia",
        "CoreGraphics"
    ]
}

Pin It on Pinterest

Share This