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)?
相关问题
- How to set the title of a menu in Android [duplica
- How can set pop-up menu position in QML
- jQuery: checkbox does not lose focus (blur) [IE]
- Java: break focus cycle in jtable
- Slide-out menu css only
相关文章
- Add selected attribute to option in select menu wi
- Hide Eclipse Menu Bar (auto-hide)
- How can I make a specific TabItem gain focus on a
- Android Button needs two click for action
- Swing JxMapViewer: focus on a object and set corre
- offcanvas menu link broken
- box-shadow on inputs in chrome [duplicate]
- How to show system menu of a file in C#
Another option is to do something like the following, when buttonA (for example) has focus:
This only works if they're on the same level in the view hierarchy, though. If not then you probably need to chain the calls to
setNeedsFocusUpdate
all the way up the hierarchy or something...Read more here
Start by overriding the
preferredFocusedView
in your viewController with a custom property:Then, in your button callback, set the
myPreferredFocusedView
to your next preferred button which should get focus. After that, directly request a focus update:This should update the focus system to your other button.