Marino Faggiana 7 年之前
父节点
当前提交
f49677b460
共有 2 个文件被更改,包括 3 次插入12 次删除
  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) {