简体   繁体   中英

different navigationbar Height in storyboard

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

在此输入图像描述

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

在此输入图像描述

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

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM