ios - How do I hide/show views that are layered in a "container" view inside a viewcontroller XIB -


the following issue happens when testing on physical device (iphone 6+). works on simulator.


i have viewcontroller header , footer section show/hide different subviews depending on current state.

the subviews of containers defined within viewcontroller xib using autolayout, , added respective containers on viewdidload.

the problem after add subviews header , footer containers, i'm not able change "hidden" property of subviews display ones need show/hide.

xib file

you can see breakpoint example, shows hidden property coerced value assigned on viewdidload, defaulted false.

enter image description here

i tried using bringsubviewstofront, did not work. subviews retain hidden value had after viewdidload.

i think should replace header/footer item instead changing visibility.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -