Declared in NSObject+SLAccessibilityDescription.h

Overview

The methods in the NSObject (SLAccessibilityDescription) category allow developers to examine the accessibility properties of objects within their application, for use in making their application accessible to disabled users and to Subliminal.

Tasks

Instance Methods

slAccessibilityDescription

Returns a string that describes the receiver in terms of its accessibility properties.

- (NSString *)slAccessibilityDescription

Return Value

A string that describes the receiver in terms of its accessibility properties.

Declared In

NSObject+SLAccessibilityDescription.h

slRecursiveAccessibilityDescription

Returns a string that recursively describes accessibility elements contained within the receiver.

- (NSString *)slRecursiveAccessibilityDescription

Return Value

A string that recursively describes the receiver and its accessibility children in terms of their accessibility properties.

Discussion

In terms of their accessibility properties, using slAccessibilityDescription.

If the receiver is a UIView, this also enumerates the subviews of the receiver.

Warning: This method describes all elements contained within the receiver, even if they will not appear in the accessibility hierarchy (see [NSObject willAppearInAccessibilityHierarchy]). That is, the set of elements described by this method is a superset of those elements that will appear in the accessibility hierarchy. To log only those elements that will appear in the accessibility hierarchy, use [SLUIAElement logElementTree].

Declared In

NSObject+SLAccessibilityDescription.h