UITextView.PasswordRules 属性

定义

获取或设置用于在 UITextView 中输入密码的密码规则。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UITextInputPasswordRules PasswordRules { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("passwordRules", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setPasswordRules:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.PasswordRules : UIKit.UITextInputPasswordRules with get, set

属性值

在 UITextView 中输入密码的密码规则。

属性

注解

仅当 设置为 trueSecureTextEntry,才应用提供的规则。

适用于

另请参阅