Instance Method インスタンスメソッド

accessibilitySetValue(_:forAttribute:)

Sets the value of the specified attribute in the receiver to the specified value.

Declaration 宣言

func accessibilitySetValue(_ value: Any?, 
              forAttribute attribute: NSAccessibility.Attribute)

Parameters パラメータ

value

The attribute value to be set.

attribute

The name of the attribute. See Constants for lists of attribute names.

Discussion 解説

User interface classes must implement this method if any of its attributes are settable. Subclasses should invoke the superclass's implementation, if it exists, if attribute is not implemented in the subclass.

See Also 参照

Deprecated 非推奨