Marino Faggiana 8 жил өмнө
parent
commit
2444b9771f

+ 1 - 0
iOSClient/Brand/CCNextcloudConstant.h

@@ -27,6 +27,7 @@
 #define k_textCopyright                 @"Nextcloud %@ © 2017 T.W.S. Inc."
 #define k_loginBaseUrl                  @"https://cloud.twsweb.it"
 #define k_pushNotificationServer        @"https://push-notifications.nextcloud.com"
+#define k_loginButtonLabelLink          @"https://nextcloud.com/providers"
 
 // Capabilities Group & Service Key Share
 #define k_capabilitiesGroups            @"group.it.twsweb.Crypto-Cloud"

+ 11 - 1
iOSClient/Login/CCLogin.m

@@ -42,7 +42,12 @@
     self.imageBrand.image = [UIImage imageNamed:image_brandLogin];
     self.login.backgroundColor = COLOR_BRAND;
     
+    // Bottom label
     self.bottomLabel.text = NSLocalizedString(@"_login_bottom_label_", nil);
+    self.bottomLabel.userInteractionEnabled = YES;
+    UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tabBottomLabel)];
+    [self.bottomLabel addGestureRecognizer:tapGesture];
+    
     if (self.view.frame.size.width == ([[UIScreen mainScreen] bounds].size.width*([[UIScreen mainScreen] bounds].size.width<[[UIScreen mainScreen] bounds].size.height))+([[UIScreen mainScreen] bounds].size.height*([[UIScreen mainScreen] bounds].size.width>[[UIScreen mainScreen] bounds].size.height))) {
         
         // Portrait
@@ -354,9 +359,14 @@
 }
 
 #pragma --------------------------------------------------------------------------------------------
-#pragma mark == IBAction ==
+#pragma mark == Action ==
 #pragma --------------------------------------------------------------------------------------------
 
+- (void)tabBottomLabel
+{
+    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:k_loginButtonLabelLink]];
+}
+
 - (IBAction)handlebaseUrlchange:(id)sender
 {
     if ([self.baseUrl.text length] > 0)

+ 1 - 1
iOSClient/Login/CCLogin.storyboard

@@ -128,7 +128,7 @@
                                 <constraints>
                                     <constraint firstAttribute="height" constant="51" id="h7p-oO-gAz"/>
                                 </constraints>
-                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
                                 <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                                 <nil key="highlightedColor"/>
                             </label>