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 2013/09/17 02:24:27 UTC

[2/2] git commit: Revert "[CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin"

Revert "[CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin"

This reverts commit 43a0982529d3a251c41c9ccce6a9dd86d61cabb4.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/0774b947
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/0774b947
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/0774b947

Branch: refs/heads/master
Commit: 0774b947105b25c0b2295cb5bd02bb1a40c7b5e1
Parents: 545da9e
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Sep 16 17:24:18 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Sep 16 17:24:18 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVCapture.m | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/0774b947/src/ios/CDVCapture.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCapture.m b/src/ios/CDVCapture.m
index 774c430..50bf0e7 100644
--- a/src/ios/CDVCapture.m
+++ b/src/ios/CDVCapture.m
@@ -88,8 +88,7 @@
 
         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 @@
         // 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 @@
         // 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 @@
     // 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;