You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/04/20 01:04:40 UTC
ios commit: Removed cropToSize option,
defaults to NO always (like the other platforms) re: CB-54, CB-183
Updated Branches:
refs/heads/master c532cfb67 -> 4130e3782
Removed cropToSize option, defaults to NO always (like the other platforms) re: CB-54, CB-183
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/4130e378
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/4130e378
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/4130e378
Branch: refs/heads/master
Commit: 4130e3782240be3db1a56635292ba1f54aa0b698
Parents: c532cfb
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Apr 19 16:03:47 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Apr 19 16:04:10 2012 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVCamera.m | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/4130e378/CordovaLib/Classes/CDVCamera.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCamera.m b/CordovaLib/Classes/CDVCamera.m
index 924425d..3102193 100644
--- a/CordovaLib/Classes/CDVCamera.m
+++ b/CordovaLib/Classes/CDVCamera.m
@@ -44,7 +44,6 @@
* 8 allowsEdit
* 9 correctOrientation
* 10 saveToPhotoAlbum
- * 11 cropToSize
*/
- (void) takePicture:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
{
@@ -86,7 +85,8 @@
self.pickerController.allowsEditing = allowEdit; // THIS IS ALL IT TAKES FOR CROPPING - jm
self.pickerController.callbackId = callbackId;
self.pickerController.targetSize = targetSize;
- self.pickerController.cropToSize = ([arguments objectAtIndex:11]) ? [[arguments objectAtIndex:11] boolValue ] : false;
+ self.pickerController.cropToSize = NO;
+
self.pickerController.correctOrientation = [[arguments objectAtIndex:9] boolValue];
self.pickerController.saveToPhotoAlbum = [[arguments objectAtIndex:10] boolValue];