Inherits from NSObject
Declared in DTCoreTextLayoutFrameAccessibilityElementGenerator.h

Overview

Generates an array of objects conforming to the UIAccessibility informal protocol based on a DTCoreTextLayoutFrame.

Instance Methods

accessibilityElementsForLayoutFrame:view:attachmentViewProvider:

The designated initializer. The DTAttachmentViewProvider block may be used to provide custom subviews in place of a static accessibility element.

- (NSArray *)accessibilityElementsForLayoutFrame:(DTCoreTextLayoutFrame *)frame view:(UIView *)view attachmentViewProvider:(DTAttachmentViewProvider)block

Parameters

frame

The DTCoreTextLayoutFrame to generate accessibility elements for.

view

The logical superview of the elements - the view that owns the local coordinate system for drawing the frame.

block

A callback block which takes a DTTextAttachment object and returns an object that conforms to the UIAccessibility informal protocol.

Return Value

Returns an array of objects conforming to the UIAccessibility informal protocol, suitable for presentation fo the VoiceOver system.

Declared In

DTCoreTextLayoutFrameAccessibilityElementGenerator.h