Type Method

simulateFocusUpdateRequestFromEnvironment:

Simulates a focus update request from the specified environment.

Declaration

+ (id<UIFocusDebuggerOutput>)simulateFocusUpdateRequestFromEnvironment:(id<UIFocusEnvironment>)environment;

Discussion

Call this method from the lldb debugger using the following commands. In the examples, obj corresponds to an object that adopts the UIFocusEnvironment protocol.

Listing 1

Getting help

po [UIFocusDebugger simulateFocusUpdateRequestFromEnvironment: obj]

The method simulates a focus update request, outlining each step of the process for determining the next focused item.

See Also

Getting Focus Information

+ status

Returns the state of the focus system, including information about the currently focused item.

+ checkFocusabilityForItem:

Returns information about whether the item can be focused, including any known issues that would prevent the item from being focused.

UIFocusDebuggerOutput

An interface for specifying output from a focus debugger object.