Instance Method

accessibilityActivate

Tells the element to activate itself and report the success or failure of the operation.

Declaration

- (BOOL)accessibilityActivate;

Return Value

YES if the element was activated or NO if it was not.

Discussion

You can use this method to make complex controls more readily accessible to users. The accessibility system calls this method when a VoiceOver user double taps the selected element. Your implementation of this method should activate the element and perform whatever other tasks it deems appropriate. For example, you might use the method to activate a control that requires a complex gesture and would be difficult for VoiceOver users to perform, possibly because the gesture has a different meaning when VoiceOver is running.

After performing any tasks, return an appropriate Boolean value to indicate success or failure.

See Also

Performing an Action

- accessibilityIncrement

Tells the accessibility element to increment the value of its content.

- accessibilityDecrement

Tells the accessibility element to decrement the value of its content.

- accessibilityScroll:

Scrolls screen content in an application-specific way and returns the success or failure of the action.

- accessibilityPerformEscape

Dismisses a modal view and returns the success or failure of the action.

- accessibilityPerformMagicTap

Performs a salient action.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software