Latest 0.0.4
Homepage https://github.com/zshannon/ZCSAvatarCapture
License MIT
Platforms ios 7.0, requires ARC
Authors

You’ve got user avatars in your app. You probably don’t have user avatar editing as nice as this.

Add to your Podfile

pod 'ZCSAvatarCapture', '~> 0.0.5'

Use in your project

Setup

#import "ZCSAvatarCaptureController.h"

ZCSAvatarCaptureController *avatarCaptureController = [[ZCSAvatarCaptureController alloc] init];
avatarCaptureController.delegate = self;
avatarCaptureController.image = [UIImage imageNamed:@"model-001.jpg"]; // Use your current avatar image here
[self.avatarView addSubview:self.avatarCaptureController.view]; // self.avatarView is a placeholder on the Storyboard in this example

// You can manually initiate a capture session like so (thanks to @ssuchanowski)
[avatarCaptureController startCapture];

Capture

The delegate method imageSelected:(UIImage *)image will be called when the user completes capture.

- (void)imageSelected:(UIImage *)image {
    // Do something with your user's new avatar image
}

Screenshots

Example App with Avatar
Example with Camera
Example with Photo
Example App after Avatar

Contributing

Send me Pull Requests here, please.

Latest podspec

{
    "name": "ZCSAvatarCapture",
    "version": "0.0.4",
    "summary": "User avatar editing made nice.",
    "description": "This is a nice interface for editing a photo. Just tap on the photo to change it. It's greate for user avatars.",
    "homepage": "https://github.com/zshannon/ZCSAvatarCapture",
    "screenshots": [
        "https://raw.githubusercontent.com/zshannon/ZCSAvatarCapture/screenshots/one.png",
        "https://raw.githubusercontent.com/zshannon/ZCSAvatarCapture/screenshots/two.png",
        "https://raw.githubusercontent.com/zshannon/ZCSAvatarCapture/screenshots/three.png",
        "https://raw.githubusercontent.com/zshannon/ZCSAvatarCapture/screenshots/four.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zane Shannon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/zaneshannon",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/zshannon/ZCSAvatarCapture.git",
        "tag": "0.0.4"
    },
    "source_files": "ZCSAvatarCaptureController.{h,m}",
    "resource_bundles": {
        "PKImageBundle": [
            "PKImageBundle.bundle/*.png"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This