Skip to content
Permalink
Browse files
Revert "[CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin"
This reverts commit 43a0982.
  • Loading branch information
shazron committed Sep 17, 2013
1 parent 545da9e commit 0774b947105b25c0b2295cb5bd02bb1a40c7b5e1
Showing 1 changed file with 4 additions and 7 deletions.
@@ -88,8 +88,7 @@ - (void)captureAudio:(CDVInvokedUrlCommand*)command

self.inUse = YES;

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

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

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

0 comments on commit 0774b94

Please sign in to comment.