Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d5102815c3
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (40 sloc) 1.376 kB
//
// ELCImagePickerController.m
// ELCImagePickerDemo
//
// Created by Collin Ruffenach on 9/9/10.
// Copyright 2010 ELC Technologies. All rights reserved.
//
#import "ELCImagePickerController.h"
#import "ELCAsset.h"
#import "ELCAssetCell.h"
#import "ELCAssetTablePicker.h"
#import "ELCAlbumPickerController.h"
@implementation ELCImagePickerController
@synthesize delegate;
-(void)cancelImagePicker {
if([delegate respondsToSelector:@selector(elcImagePickerControllerDidCancel:)]) {
[delegate performSelector:@selector(elcImagePickerControllerDidCancel:) withObject:self];
}
}
-(void)selectedAssets:(NSArray*)_assets {
[self popToRootViewControllerAnimated:NO];
[[self parentViewController] dismissViewControllerAnimated:YES completion:^{}];
if([delegate respondsToSelector:@selector(elcImagePickerController:didFinishPickingMediaWithInfo:)]) {
[delegate performSelector:@selector(elcImagePickerController:didFinishPickingMediaWithInfo:) withObject:self withObject:[NSArray arrayWithArray:_assets]];
}
}
#pragma mark -
#pragma mark Memory management
- (void)didReceiveMemoryWarning {
NSLog(@"ELC Image Picker received memory warning.");
[super didReceiveMemoryWarning];
}
- (void)viewDidUnload {
[super viewDidUnload];
}
- (void)dealloc {
NSLog(@"deallocing ELCImagePickerController");
[super dealloc];
}
@end
Jump to Line
Something went wrong with that request. Please try again.