From 6c51c7b723c3fb37e4917779d78c41d9ed0ba0c1 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Dec 2014 16:12:47 +0100 Subject: [PATCH] Test --- src/ios/SOSPicker.m | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/ios/SOSPicker.m b/src/ios/SOSPicker.m index 4085108..d2907fe 100644 --- a/src/ios/SOSPicker.m +++ b/src/ios/SOSPicker.m @@ -73,38 +73,7 @@ - (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPic @autoreleasepool { ALAssetRepresentation *assetRep = [asset defaultRepresentation]; CGImageRef imgRef = NULL; - UIAlertView *message0 = [[UIAlertView alloc] initWithTitle:@"first message" - message:fileNameOriginal - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - NSString *fileNameOriginal = [assetRep filename]; - [message0 show]; - UIAlertView *message1 = [[UIAlertView alloc] initWithTitle:@"fileNameOriginal" - message:fileNameOriginal - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - - [message1 show]; - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); - NSString *documentsDirectory = [paths objectAtIndex:0]; - UIAlertView *message2 = [[UIAlertView alloc] initWithTitle:@"documentsDirectory" - message:documentsDirectory - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - - [message2 show]; - NSString* _pathOrig = [documentsDirectory stringByAppendingPathComponent:fileNameOriginal ]; - UIAlertView *message3 = [[UIAlertView alloc] initWithTitle:@"_pathOrig" - message:_pathOrig - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - - [message2 show]; - //[resultStrings addObject:[[NSURL fileURLWithPath:filePath] absoluteString]]; + //defaultRepresentation returns image as it appears in photo picker, rotated and sized, //so use UIImageOrientationUp when creating our image below. if (picker.returnsOriginalImage) {