Marino Faggiana 7 ani în urmă
părinte
comite
f49677b460
2 a modificat fișierele cu 3 adăugiri și 12 ștergeri
  1. 2 0
      iOSClient/Main/CCMain.m
  2. 1 12
      iOSClient/Move/CCMove.m

+ 2 - 0
iOSClient/Main/CCMain.m

@@ -850,6 +850,8 @@
             
             [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
                 [textField addTarget:self action:@selector(minCharTextFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
+                
+                textField.autocapitalizationType = UITextAutocapitalizationTypeWords;
             }];
             
             UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_",nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {

+ 1 - 12
iOSClient/Move/CCMove.m

@@ -121,18 +121,6 @@
     self.navigationController.toolbar.tintColor = NCBrandColor.sharedInstance.brand;
 }
 
-// MARK: - alertView
-
-- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
-{
-    if (buttonIndex == 1) {
-        NSString *nome = [alertView textFieldAtIndex:0].text;
-        if ([nome length]) {
-            nome = [NSString stringWithFormat:@"%@/%@", _serverUrl, [CCUtility removeForbiddenCharactersServer:nome]];
-        }
-    }
-}
-
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ==== DZNEmptyDataSetSource ====
 #pragma --------------------------------------------------------------------------------------------
@@ -192,6 +180,7 @@
     
     [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
         //textField.placeholder = NSLocalizedString(@"LoginPlaceholder", @"Login");
+        textField.autocapitalizationType = UITextAutocapitalizationTypeWords;
     }];
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_save_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {