From cad3a13c375b7df63d04711d7e60175e82494129 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 23 Jan 2015 09:49:21 -0500 Subject: [PATCH] CB-8351 Use argumentForIndex rather than NSArray extension --- src/ios/CDVStatusBar.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index f305f63..d2bd708 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -232,7 +232,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; - (void) overlaysWebView:(CDVInvokedUrlCommand*)command { - id value = [command.arguments objectAtIndex:0]; + id value = [command argumentAtIndex:0]; if (!([value isKindOfClass:[NSNumber class]])) { value = [NSNumber numberWithBool:YES]; } @@ -301,7 +301,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; - (void) backgroundColorByName:(CDVInvokedUrlCommand*)command { - id value = [command.arguments objectAtIndex:0]; + id value = [command argumentAtIndex:0]; if (!([value isKindOfClass:[NSString class]])) { value = @"black"; } @@ -325,7 +325,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; - (void) backgroundColorByHexString:(CDVInvokedUrlCommand*)command { - NSString* value = [command.arguments objectAtIndex:0]; + NSString* value = [command argumentAtIndex:0]; if (!([value isKindOfClass:[NSString class]])) { value = @"#000000"; }