Creates and initializes an accessibility element to represent an item in the specified container.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The view that contains the item.
An accessibility element to represent a non-view item in the container.
In general, you do not create accessibility elements for items in your application because standard UIKit controls and views are accessible by default. However, if you have a view that contains nonview items, such as icons or text images, that need to be accessible to users with disabilities, you create accessibility elements to represent them. In this case, the containing view should implement the UIAccessibilityContainer informal protocol and use this method to create an accessibility element to represent each item that should be exposed to an assistive application.