I finally figured out how to add NavBar to NavigationController. Unless I uncheck translucent, it wasn't displaying. Now, I set up NavBar, but it's height is quiet wide. I can change the color of the navbar from storyboard, but the constraints are disabled (grey).
I also tried,
// These works
self.title = "GLOBAL"
// Neither works for Height
self.navigationController?.navigationBar.frame.size.height = 200
self.navigationController?.navigationBar.frame = CGRectMake(0, 0, 320, 64)
self.navigationController?.navigationBar.frame.origin.y = -50
// Also, as soon as I type this line, the nav bar goes black
self.view.addSubview((navigationController?.navigationBar)!)
What do you think can be the problem? How can I adjust the size of NavBar normally, or at least quiet narrower?
I finally figured out how to add NavBar to NavigationController. Unless I uncheck translucent, it wasn't displaying. Now, I set up NavBar, but it's height is quiet wide. I can change the color of the navbar from storyboard, but the constraints are disabled (grey).
I also tried,
What do you think can be the problem? How can I adjust the size of NavBar normally, or at least quiet narrower?
What I want:
What I have now: