From 19b211e5a9a5ff9c844a96a5d5e0230ca3628b80 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 25 五月 2023 14:56:11 +0800 Subject: [PATCH] ios 短信自动填充 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 27 ++++++++++----------------- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index 34968ff..8515ed2 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -230,6 +230,9 @@ } //楠岃瘉鐮佷笉闇�瑕侀殣钘� etPassword.SecureTextEntry = false; +#if __IOS__ + etPassword.SetTextContentTypeToOneTimeCode(); +#endif } #endregion } @@ -318,7 +321,7 @@ //} //闅愯棌瀵嗙爜 etPassword.SecureTextEntry = true; - etPassword.IsNumberKeyboardType = false; + //etPassword.IsNumberKeyboardType = false; } //楠岃瘉鐮佺櫥褰� else if (logintMode == 1) @@ -347,23 +350,8 @@ //楠岃瘉鐮佷笉闇�瑕侀殣钘� etPassword.SecureTextEntry = false; etPassword.Text = smsCode; - etPassword.IsNumberKeyboardType = true; -#if __IOS__ - var currentInputMode = UIKit.UITextInputMode.CurrentInputMode; - var installedInputModes = UIKit.UITextInputMode.ActiveInputModes; - var temmm = new EditText() - { - X = Application.GetRealWidth(78), - Width = Application.GetRealWidth(61 + 84), - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextAlignment = TextAlignment.CenterLeft, - Foucs = true, - BackgroundColor = 0x44330000, - }; - passwordView.AddChidren(etPassword); + //etPassword.IsNumberKeyboardType = true; -#endif } } @@ -467,6 +455,11 @@ Thread.Sleep(10); } }) { IsBackground = true }.Start(); +#if __IOS__ + var sst = etPassword.MyTextContentType; + Console.WriteLine(sst); + etPassword.SetTextContentTypeToOneTimeCode(); +#endif } else { -- Gitblit v1.8.0