Specifies the transform applied to the view, relative to the center of its bounds.
- iOS 2.0+
- tvOS 9.0+
Use this property to scale or rotate the view's frame rectangle within its superview's coordinate system. (To change the position of the view, modify the
center property instead.) The default value of this property is CGAffineTransformIdentity.
Transformations occur relative to the view's anchor point. By default, the anchor point is equal to the center point of the frame rectangle. To change the anchor point, modify the
anchor property of the view's underlying
Changes to this property can be animated.
In iOS 8.0 and later, the
transform property does not affect Auto Layout. Auto layout calculates a view’s alignment rectangle based on its untransformed frame.