Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.3 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.3 KB

NBNPhotoChooser

CocoaPods Version CocoaPods Platform

An example implementation of the Tumblr Photo Chooser.

Install using CocoaPods

# Podfile
pod 'NBNPhotoChooser'

Usage

Example Usage:

#import <NBNPhotoChooser/NBNPhotoChooserViewController.h>

- (void)choosePhoto:(id)sender {
    NBNPhotoChooserViewController *photoChooserViewController = [[NBNPhotoChooserViewController alloc] initWithDelegate:self];
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:photoChooserViewController];
    [self presentViewController:navController animated:YES completion:nil];
}

#pragma mark - NBNPhotoChooserViewControllerDelegate

- (void)photoChooserController:(NBNPhotoChooserViewController *)photoChooser didChooseImage:(UIImage *)image {
    self.commentToolbar.chosenImage = image;
}

Contributing

Contributions are highly appreciated, just open up an issue or a pull request.