PageMenu / PageMenu

A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram)
BSD 3-Clause "New" or "Revised" License
5.27k stars 899 forks source link

Navigation Bar's Height is Too Wide #148

Open sentiasa opened 8 years ago

sentiasa commented 8 years ago

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?

What I want: screen shot 2015-12-05 at 23 15 07

What I have now: screen shot 2015-12-05 at 23 12 45

elmateo487 commented 8 years ago

I have this same question. But have not looked into it yet. Is this possible?