How to move the focus from a button to another in tvOS?
问题 I'm new to tvOS. I would like to have a standard button that once is pressed, it moves the focus to another standard button, how can I do this (if it's possible of course)? 回答1: Start by overriding the preferredFocusedView in your viewController with a custom property: var myPreferredFocusedView:UIView? override var preferredFocusedView: UIView? { return myPreferredFocusedView:UIView } Then, in your button callback, set the myPreferredFocusedView to your next preferred button which should get