Search code examples
uitabbarcontrolleruitabbartvosapple-tvswift2

How to stop TabBar hidden in change focus in tvos


I am working on apple tv app in swift. I need to implement TabBarController. In apple tv application TabBar hidden in change focus but I want to need show TabBar if user change focus in app. How to do?


Solution

  • Use this method in UITabBarController Class

     override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator){
    
       self.tabBar.hidden = false
    
    }