Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在快速开发 Apple tv 应用程序。我需要实现 TabBarController。在 Apple tv 应用程序中,TabBar 隐藏在更改焦点中,但如果用户在应用程序中更改焦点,我希望显示 TabBar。怎么做?
在 UITabBarController 类中使用此方法
override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator){ self.tabBar.hidden = false }