Alexey Shavitov
Alexey Shavitov

Reputation: 53

different navigationbar Height in storyboard

How to create topbar like in right controller (it has width more than in left navcontroller)?

enter image description here

i've tried to create any controllers with same properties, but width of bar in left navcontroller and right are same.

enter image description here

Upvotes: 3

Views: 2593

Answers (2)

Avinash651
Avinash651

Reputation: 1399

You can change the nav bar height programmatically:

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

Edit: As I wrote in the comments, you may have to put this line in viewDidLayoutSubviews to circumvent autolayout.

Source Link

Upvotes: 1

Anbu.Karthik
Anbu.Karthik

Reputation: 82759

do like select your Viewcontroller --> select navigationBar --> go to attribute Inspector on NavigationItem --> select Prompt--> add one/More space in your keyboard on their field , it increase size on your TopBar/NavigationBar Height

for example

enter image description here

Upvotes: 5

Related Questions