ios - Autolayout invalid related to hidden navigationbar in xib -


i working on problem related navigation bar in xib file. problem follows:

i add xib file, , manually put uinavigationbar on top of it, , use constraints make stays on top of screen. add uilabel below it, , use constraints make below navigation bar. is, let label.top equals navigationbar.bottom. need add fullscreen function. add button , after pressing it, hide navigation bar code this:

self.navbar.hidden = yes; 

the navbar hidden, label somehow still keeping position, , doesn't move top of screen, expected see.

so question is:

  1. is effect normal? because navbar hidden, constraints should make label move top.

  2. what should achieve effect want if it's normal/abnormal.

thank guys! idea can help!

and pardon me english, it's not native language.

as adding navigation bar, not navigation controller, hiding wont work. have set height constraint on navigation bar, , make outlet in controller, want hide bar have set constraint.constant zero.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -