How to make View with NavigationBar Height

Hi,

I Presented a ViewControllerB from ViewControllerA.

Having navigation bar in ViewcontrollerA

How to create a view in viewControllerB that should be of same height of navigation bar + statusbar in viewControllerA.

How to create this in storyboard?

How this create this for all iphone screen sizes?

Replies

Not sure I see exactly what you want to do.


But, conditioning values in IB for ViewB depending on viewA values will be tricky (in fact, I nhink impossible), unless the values can be derived from general values (as safe area…)


In your case, I would write a few lines of code in viewB to adjust the size, with parameters passed in the prepare for segue or when you instantiate viewB.