ios - Vary for Traits in XCode 8 orientation -
i confused if 'vary traits' right thing define different set of layout constraints portrait & landscape mode on iphone. objective have different layouts portrait & landscape modes on iphone (doesn't matter on ipad). tried 'vary traits' , define different set of nslayoutconstraints portrait & landscape modes seems not working. if have constraints p1 & p2 active portrait mode , c1 & c2 landscape mode same view, should job. 'vary traits' meant job?
also how undo variations might have added using 'vary traits'?
you need following -
- set constraint in portrait mode.
- select landscape mode.
- disable constraints set in portrait mode.
- assign new constraints landscape.
- go in portrait mode , disable constraints set in landscape mode.
that's it.
hope works.
feel free comment if have confusion..
Comments
Post a Comment