Skip to content
Permalink
Browse files
[CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin
  • Loading branch information
shazron committed Sep 16, 2013
1 parent 9a8cc8f commit 43a0982529d3a251c41c9ccce6a9dd86d61cabb4
Showing 1 changed file with 7 additions and 4 deletions.
@@ -88,7 +88,8 @@ - (void)captureAudio:(CDVInvokedUrlCommand*)command

self.inUse = YES;

if ([self.viewController respondsToSelector:@selector(presentViewController:::)]) {
SEL pvcSel = NSSelectorFromString(@"presentViewController:::");
if ([self.viewController respondsToSelector:pvcSel]) {
[self.viewController presentViewController:navController animated:YES completion:nil];
} else {
[self.viewController presentModalViewController:navController animated:YES];
@@ -139,7 +140,8 @@ - (void)captureImage:(CDVInvokedUrlCommand*)command
// CDVImagePicker specific property
pickerController.callbackId = callbackId;

if ([self.viewController respondsToSelector:@selector(presentViewController:::)]) {
SEL pvcSel = NSSelectorFromString(@"presentViewController:::");
if ([self.viewController respondsToSelector:pvcSel]) {
[self.viewController presentViewController:pickerController animated:YES completion:nil];
} else {
[self.viewController presentModalViewController:pickerController animated:YES];
@@ -255,7 +257,8 @@ - (void)captureVideo:(CDVInvokedUrlCommand*)command
// CDVImagePicker specific property
pickerController.callbackId = callbackId;

if ([self.viewController respondsToSelector:@selector(presentViewController:::)]) {
SEL pvcSel = NSSelectorFromString(@"presentViewController:::");
if ([self.viewController respondsToSelector:pvcSel]) {
[self.viewController presentViewController:pickerController animated:YES completion:nil];
} else {
[self.viewController presentModalViewController:pickerController animated:YES];
@@ -615,7 +618,7 @@ - (void)loadView
// timerLabel.autoresizingMask = reSizeMask;
[self.timerLabel setBackgroundColor:[UIColor clearColor]];
[self.timerLabel setTextColor:[UIColor whiteColor]];
[self.timerLabel setTextAlignment:UITextAlignmentCenter];
[self.timerLabel setTextAlignment:NSTextAlignmentCenter];
[self.timerLabel setText:@"0:00"];
[self.timerLabel setAccessibilityHint:NSLocalizedString(@"recorded time in minutes and seconds", nil)];
self.timerLabel.accessibilityTraits |= UIAccessibilityTraitUpdatesFrequently;

0 comments on commit 43a0982

Please sign in to comment.