cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: [CB-4848] Fix Xcode 5 semantic issues for Media Capture plugin
Date Mon, 16 Sep 2013 22:30:23 GMT
Updated Branches:
  refs/heads/master 9a8cc8f0c -> 43a098252


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


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/43a09825
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/43a09825
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/43a09825

Branch: refs/heads/master
Commit: 43a0982529d3a251c41c9ccce6a9dd86d61cabb4
Parents: 9a8cc8f
Author: Shazron Abdullah <shazron@apache.org>
Authored: Mon Sep 16 15:30:26 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Sep 16 15:30:26 2013 -0700

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


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


Mime
View raw message