0

The root view controller HomeTableViewController is embedded in a UINavigationController. How can a subView take over the whole screen and be placed on top of the navigation bar of the CustomNavigation: UINavigationController class?

This is the code I am using:

       if var player = self.moviePlayer {
            player.view.frame = self.view.bounds
            player.prepareToPlay()
            player.scalingMode = .AspectFill
            player.controlStyle = .None
            // self.view.addSubview(player.view)
            self.navigationController.view.addSubview(player.view)
        }

I see the error:

'UINavigationController?' does not have a member named 'view'

This is my Main.storyboard:

enter image description here

1 Answer 1

0

So easy...

navigationController?.navigationBarHidden = true

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationController_Class/index.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.