ios - Why doesn't autolayout work with container view -


i using container view in application having strange issue regarding autoresizing of view. here snapshots of demo application building.

the below image shows doing normal view of normal iphone view size.

this view resizes correctly constraints added.

enter image description here

now here using container view has size of 150*280 , have used same constraints above.

enter image description here

here shows snapshot of portrait view no issues in navigator. enter image description here

but when change orientation gives following warning.

enter image description here

how solve issue? thanks

i have noticed interface builder doesn't refresh elements placed via constracints correctly when changing orientation viewontroller.

if click on yellow warning icon , select "update frame", chances display properly. on actual device should display properly.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -