A set of methods that provide accessibility information about views and controls in an app's user interface.
- iOS 3.0+
- tvOS 9.0+
- watchOS 2.0+
The UIAccessibility informal protocol provides accessibility information about an application’s user interface elements. Assistive applications, such as VoiceOver, convey this information to users with disabilities to help them use the application.
Standard UIKit controls and views implement the
UIAccessibility methods and are therefore accessible to assistive applications by default. This means that if your application uses only standard controls and views, such as
UITable, you need only supply application-specific details when the default values are incomplete. You can do this by setting these values in Interface Builder or by setting the properties in this informal protocol.
UIAccessibility informal protocol is also implemented by the
UIAccessibility class, which represents custom user interface objects. If you create a completely custom UIView subclass, you might need to create an instance of
UIAccessibility to represent it. In this case, you would support all the
UIAccessibility properties to correctly set and return the accessibility element’s properties.