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:
is effect normal? because navbar hidden, constraints should make label move top.
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
Post a Comment