cost 116 ms
如何在集合视图中手动 select 下一个重点索引路径 - How to manually select next focused index path in collection view

如何在 tvOS 上为我的集合视图手动决定下一个重点索引路径? 我的用例是我有一个集合视图,其中包含向各个方向滚动的动态单元格,有时当一个部分中的一个单元格跨越下一个部分中的多个单元格时,我希望能够手动决定接下来关注哪个单元格。 默认行为似乎是集合视图将 select 前一个中间的单元格。 例如,绿 ...

如何使用自定义控件管理 AVPlayerViewController 中的焦点处理? - How to manage focus handling in AVPlayerViewController with custom controls?

我尝试向 tvOS 电影应用程序的AVPlayerViewController添加一个跳过介绍按钮(如 Netflix)。 我将它作为子视图添加到contentOverlayView ,当我让它出现时,我会用preferredFocusEnvironments强制给它焦点。 一切都很好......直 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM