A clone of UIImagePickerController which allows for picking multiple images and returns ALAsset instances.
Objective-C Nu C
Pull request Compare This branch is 65 commits ahead, 118 commits behind B-Sides:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Classes
ELCImagePickerDemo.xcodeproj
Spec
.gitignore
.gitmodules
ELCImagePickerDemo-Info.plist
ELCImagePickerDemoViewController.xib
ELCImagePickerDemo_Prefix.pch
MainWindow.xib
README.md
Rakefile
Specs-Info.plist
TODO
design.md
main.m

README.md

ELCImagePickerController

This image picker is a clone of UIImagePickerController that comes with UIKit. However, this clone allows you to pick multiple images, instead of just one, and returns ALAsset instances, allowing you to get more fine grained control over the selected media.

Usage

To show the image picker do the following:

ELCImagePickerController *imagePicker = [[ELCImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsPickingMultipleItems = YES;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];

The delegate should implement two methods that are very similar to the ones UIImagePickerControllerDelegate describes, with the exception that the first method should take an array of ALAsset instances:

- (void)imagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaAssets:(NSArray *)assets;
- (void)imagePickerControllerDidCancel:(ELCImagePickerController *)picker;

You are responsible for discarding the modal view controller afterwards.

For more information on working with ALAsset see: http://bit.ly/eZBrBp

Specs

You need ObjectiveBacon to be able to run the specs you will have to initialize and update the submodule dependency:

$ git submodule init
$ git submodule update

For more info see: https://github.com/alloy/ObjectiveBacon

Covered under the MIT license

Copyright (c) 2010, 2011 ELC Technologies Copyright (c) 2011, Eloy Duran / Fingertips eloy.de.enige@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.