TofuDrew
TofuDrew

Reputation: 1

Change navigation bar height on iOS 7 Xcode5

How can I change the default height of the Navigation bar in a Navigation Controller?

I've come across "This" great article:

But this all just style and color and what not for the "NavigationBar".

And just so you know, I mean extend the total height, because the design I'm working on, the Nav Bar is bigger in height.

Upvotes: 0

Views: 3682

Answers (3)

Ramanan R R
Ramanan R R

Reputation: 906

[[UINavigationBar appearance] setFrame:CGRectMake(0, 0, 320, 60)];

Upvotes: 0

Gopal Raju
Gopal Raju

Reputation: 246

In iOS7 Frame starts below the status bar , so y=0 means it will be under the status bar.You should Change to y=20.

Upvotes: 0

user3616687
user3616687

Reputation: 94

You can change the height of the nav bar programatically...

[navBar setFrame:CGRectMake(0, 0, 320, 64)];

image

becomes this

image2

Upvotes: 3

Related Questions