Latest 0.2.8
Homepage https://github.com/pixio/PXCamera
License MIT
Platforms ios 7.0, requires ARC
Dependencies SVProgressHUD, PXPinnedRotation
Frameworks UIKit, AssetsLibrary, AVFoundation
Authors

Version
License
Platform

Usage

Get images from the camera or photo library with one call. No delegates, no initialization.

[[PXCamera camera] getImageInViewController:self interface:PXCameraInterfaceCamera completion:^(UIImage * image, PXCameraImageSource source) {
    // boom! image and analytics data about where the image came from (camera or library)
}];

// or 

[[PXCamera camera] getImageInViewController:self interface:PXCameraInterfaceLibrary completion:^(UIImage * image, PXCameraImageSource source) {

}];

If you want to get a little bit more hands-on and make your own custom camera interface but don’t want to manage all the hassle of AVFoundation, check out PXCameraCaptureManager. This singleton provides a readonly UIView property cameraPreviewView that displays live camera output. From there, you can connect your custom UI to the other methods in the interface that allow you to control the various aspects of the camera (flash mode, preview orientation, front -facing or back-facing camera). Check out the PXCustomCameraViewController in the example project for a really basic example.

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

PXCamera is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "PXCamera"

Author

Daniel Blakemore, [email protected]

License

PXCamera is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PXCamera",
    "version": "0.2.8",
    "summary": "A camera and photo library library with class methods for ease.",
    "description": "A couple of classes for presenting a camera that can pick from your photo library and a class for quickly prompting the user to pick from the photo library.nAdditionally, a class for easily controlling and managing a custom camera interface.",
    "homepage": "https://github.com/pixio/PXCamera",
    "license": "MIT",
    "authors": {
        "Daniel Blakemore": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pixio/PXCamera.git",
        "tag": "0.2.8"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "PXCamera": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": [
        "Pod/Classes/PXCamera.h",
        "Pod/Classes/PXCameraCaptureManager.h",
        "Pod/Classes/PXCameraViewController.h"
    ],
    "frameworks": [
        "UIKit",
        "AssetsLibrary",
        "AVFoundation"
    ],
    "dependencies": {
        "SVProgressHUD": [],
        "PXPinnedRotation": []
    }
}

Pin It on Pinterest

Share This