| | |
| | | set |
| | | { |
| | | iosUITextView.SecureTextEntry = value; |
| | | if (value) |
| | | { |
| | | SetTextContentType(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 解决iOS12 以上默认提示自动生成强密码 |
| | | /// </summary> |
| | | public void SetTextContentType() |
| | | { |
| | | if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) |
| | | { |
| | | iosUITextView.SetTextContentType(UITextContentType.Password); |
| | | } |
| | | } |
| | | public static EditTextView Instance; |
| | |
| | | base.MovedToSuperview(); |
| | | if (Superview == null) |
| | | { |
| | | System.Console.WriteLine("从父控件中移除"); |
| | | Shared.HDLUtils.WriteLine("从父控件中移除"); |
| | | } |
| | | else { |
| | | System.Console.WriteLine("添加到父控件"); |
| | | Shared.HDLUtils.WriteLine("添加到父控件"); |
| | | } |
| | | } |
| | | |