I am preparing two layouts for a view controller, using two size sections. For some ideas, there are some qualities that I want to do for different values based on size class. For example, there is a label that should be the center-alliance in a size class. , But aligned right in the second; In the background of a scene, one square should have an alpha / reciprocal value, and other values of other classes.
Although it seems that I can not currently take account of the size of the editing class of these properties. If I change it into a square, then it will also be reflected in others.
Is there a proper way, or maybe a programmer (programmatic?) Allows me to set different values for specific classes?
you Self.traitCollection.horizontalSizeClass
and self.traitCollection.verticalSizeClass
with size class programmatic tests and can change properties based on it
willTransitionToTraitCollection: withTransitionCoordinator:
Html>
No comments:
Post a Comment