Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed orientation code because images were showing up incorrectly on

actual devices
  • Loading branch information...
commit b5357fa4ee6b26ff5d194eec6d6bd125d5bb5d6c 1 parent 1004c0c
@cschep cschep authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Classes/ELCImagePickerController.m
View
3  Classes/ELCImagePickerController.m
@@ -17,7 +17,6 @@ @implementation ELCImagePickerController
@synthesize delegate;
-(void)cancelImagePicker {
-
if([delegate respondsToSelector:@selector(elcImagePickerControllerDidCancel:)]) {
[delegate performSelector:@selector(elcImagePickerControllerDidCancel:) withObject:self];
}
@@ -31,7 +30,7 @@ -(void)selectedAssets:(NSArray*)_assets {
NSMutableDictionary *workingDictionary = [[NSMutableDictionary alloc] init];
[workingDictionary setObject:[asset valueForProperty:ALAssetPropertyType] forKey:@"UIImagePickerControllerMediaType"];
- [workingDictionary setObject:[UIImage imageWithCGImage:[[asset defaultRepresentation] fullScreenImage] scale:1.0 orientation:[[asset valueForProperty:@"ALAssetPropertyOrientation"] intValue]] forKey:@"UIImagePickerControllerOriginalImage"];
+ [workingDictionary setObject:[UIImage imageWithCGImage:[[asset defaultRepresentation] fullScreenImage]] forKey:@"UIImagePickerControllerOriginalImage"];
[workingDictionary setObject:[[asset valueForProperty:ALAssetPropertyURLs] valueForKey:[[[asset valueForProperty:ALAssetPropertyURLs] allKeys] objectAtIndex:0]] forKey:@"UIImagePickerControllerReferenceURL"];
[returnArray addObject:workingDictionary];
Please sign in to comment.
Something went wrong with that request. Please try again.