From 2a0735d5510e561a043d4c3ed4d4c2b0f6e1c5f8 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Tue, 27 Jan 2015 10:19:46 -0500 Subject: [PATCH] CB-8351 Unbreak build from previous commit --- src/ios/CDVCamera.h | 2 +- src/ios/CDVCamera.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ios/CDVCamera.h b/src/ios/CDVCamera.h index 231e9f6..f64f66c 100644 --- a/src/ios/CDVCamera.h +++ b/src/ios/CDVCamera.h @@ -60,7 +60,7 @@ typedef NSUInteger CDVMediaType; @property (assign) BOOL usesGeolocation; @property (assign) BOOL cropToSize; -+ (instancetype) createFromTakePictureArguments:(NSArray*)arguments; ++ (instancetype) createFromTakePictureArguments:(CDVInvokedUrlCommand*)command; @end diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index b80f259..1672087 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -38,7 +38,7 @@ static NSSet* org_apache_cordova_validArrowDirections; @implementation CDVPictureOptions -+ (instancetype) createFromTakePictureArguments:(NSArray*)arguments ++ (instancetype) createFromTakePictureArguments:(CDVInvokedUrlCommand*)command { CDVPictureOptions* pictureOptions = [[CDVPictureOptions alloc] init]; @@ -123,7 +123,7 @@ static NSSet* org_apache_cordova_validArrowDirections; [self.commandDelegate runInBackground:^{ - CDVPictureOptions* pictureOptions = [CDVPictureOptions createFromTakePictureArguments:command.arguments]; + CDVPictureOptions* pictureOptions = [CDVPictureOptions createFromTakePictureArguments:command]; pictureOptions.popoverSupported = [self popoverSupported]; pictureOptions.usesGeolocation = [self usesGeolocation]; pictureOptions.cropToSize = NO;