Asks the delegate for the table view’s index path for the preferred focused view.
- iOS 9.0+
- tvOS 9.0+
A table-view object requesting the index path for preferred focus view.
An index path for the preferred focus row, or the default preferred focus view.
This functionality of this delegate method is equivalent to overriding
preferred method in the
UIFocus protocol. If the
remembers method is set to
true, this method defines the index path that gets focused when the table view is focused for the first time.
The effects of this method may be ignored during or immediately after a view controller transition, such as a presentation dismissal or navigation stack pop. In such cases, the view controller attempts to restore focus to the item that was focused prior to the transition (for example, prior to the view controller being presented or pushed), which can take precedence over the effects of this method. To learn how to control or disable this behavior in the view controller, see