Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guicocoa/photopicker-ios
A better UIImagePickerController
https://github.com/guicocoa/photopicker-ios
Last synced: 2 months ago
JSON representation
A better UIImagePickerController
- Host: GitHub
- URL: https://github.com/guicocoa/photopicker-ios
- Owner: guicocoa
- License: mit
- Archived: true
- Created: 2011-08-25T00:22:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-11T22:08:56.000Z (almost 12 years ago)
- Last Synced: 2024-03-25T22:55:52.572Z (10 months ago)
- Language: Objective-C
- Homepage:
- Size: 2.63 MB
- Stars: 94
- Watchers: 7
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - photopicker-ios - A better UIImagePickerController (etc)
- awesome - photopicker-ios - A better UIImagePickerController (etc)
README
# About
This library is designed to mimick the core functionality of `UIImagePickerController`. It also has a few unique features not found Apple's implementation.
- Full-screen library browser for the iPad
- Preserves all item metadata (including location data)# Requirements
This library requires the presence of the following frameworks:
- `AssetsLibrary.framework`
- `QuartzCore.framework`The project must be built against the iOS 5.0 SDK or higher.
If your project is not setup to use ARC, add `-fobjc-arc` to all source files for this library in your target's "Compile Sources" build phase.
# Usage
Add the "GCImagePickerController" folder to your project. Import the main header where you intend to use the picker.
```objc
#import "GCImagePickerController.h"
```Use the picker.
```objc
// create picker
GCImagePickerController *picker = [GCImagePickerController picker];// set custom action title and block
picker.actionTitle = @"Upload";
picker.selectedItemsBlock = ^(NSSet *URLs) {
NSLog(@"%@", URLs);
};// finish up and present
picker.finishBlock = ^{ // this is optional
[self dismissViewControllerAnimated:YES completion:nil];
};
[self presentViewController:picker animated:YES completion:nil];
````