From af4101b1d8461331bc3163b738fc75d4bf67c85c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 28 七月 2020 17:47:44 +0800
Subject: [PATCH] 2020-07-28-1
---
Shared.IOS/UI/EditTextView.cs | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/Shared.IOS/UI/EditTextView.cs b/Shared.IOS/UI/EditTextView.cs
index 9283d25..117bbe2 100644
--- a/Shared.IOS/UI/EditTextView.cs
+++ b/Shared.IOS/UI/EditTextView.cs
@@ -174,6 +174,22 @@
set
{
iosUITextView.SecureTextEntry = value;
+ if (value)
+ {
+ SetTextContentType();
+ }
+ }
+ }
+
+
+ /// <summary>
+ /// 瑙e喅iOS12 浠ヤ笂榛樿鎻愮ず鑷姩鐢熸垚寮哄瘑鐮�
+ /// </summary>
+ public void SetTextContentType()
+ {
+ if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
+ {
+ iosUITextView.SetTextContentType(UITextContentType.Password);
}
}
public static EditTextView Instance;
@@ -455,10 +471,10 @@
base.MovedToSuperview();
if (Superview == null)
{
- System.Console.WriteLine("浠庣埗鎺т欢涓Щ闄�");
+ Shared.HDLUtils.WriteLine("浠庣埗鎺т欢涓Щ闄�");
}
else {
- System.Console.WriteLine("娣诲姞鍒扮埗鎺т欢");
+ Shared.HDLUtils.WriteLine("娣诲姞鍒扮埗鎺т欢");
}
}
--
Gitblit v1.8.0