Bladeren bron

VLCNetworkLoginDataSourceLogin: Always disable capitalization for all fields

Edgar Fouillet 5 jaren geleden
bovenliggende
commit
9c06c644a5
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      Sources/LocalNetworkConnectivity/VLCNetworkLoginDataSourceLogin.m

+ 1 - 3
Sources/LocalNetworkConnectivity/VLCNetworkLoginDataSourceLogin.m

@@ -65,7 +65,6 @@ typedef NS_ENUM(NSUInteger, VLCNetworkServerLoginIndex) {
     NSString *labelString = nil;
     NSString *valueString = nil;
     UIReturnKeyType returnKeyType = UIReturnKeyNext;
-    UITextAutocapitalizationType autocapitalizationType = UITextAutocapitalizationTypeSentences;
     switch (row) {
         case VLCNetworkServerLoginIndexServer:
             keyboardType = UIKeyboardTypeURL;
@@ -79,7 +78,6 @@ typedef NS_ENUM(NSUInteger, VLCNetworkServerLoginIndex) {
             break;
         case VLCNetworkServerLoginIndexUsername:
             labelString = NSLocalizedString(@"USER_LABEL", nil);
-            autocapitalizationType = UITextAutocapitalizationTypeNone;
             valueString = self.loginInformation.username;
             break;
         case VLCNetworkServerLoginIndexPassword:
@@ -107,7 +105,7 @@ typedef NS_ENUM(NSUInteger, VLCNetworkServerLoginIndex) {
     fieldCell.placeholderString = labelString;
     UITextField *textField = fieldCell.textField;
     textField.autocorrectionType = UITextAutocorrectionTypeNo;
-    textField.autocapitalizationType = autocapitalizationType;
+    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
     textField.text              = valueString;
     textField.keyboardType      = keyboardType;
     textField.secureTextEntry   = secureTextEntry;