Instance Property

canBecomeFocused

A Boolean value that indicates whether the view is currently capable of being focused.

Declaration

@property(nonatomic, readonly) BOOL canBecomeFocused;

Discussion

The value of this property is YES if the view can become focused; NO otherwise.

By default, the value of this property is NO. This property informs the focus engine if a view is capable of being focused. Sometimes even if a view returns YES, a view may not be focusable for the following reasons:

  • The view is hidden.

  • The view has alpha set to 0.

  • The view has userInteractionEnabled set to NO.

  • The view is not currently in the view hierarchy.

See Also

Observing Focus

inheritedAnimationDuration

Returns the inherited duration of the current animation.

focused

A Boolean value that indicates whether the item is currently focused.