Описание тега cornerradius
NoneIs for questions dealing with the radius used when drawing rounded corners for a layer's background.
Corner Radius
The radius to use when drawing rounded corners for the layer’s background. Animatable. @property CGFloat cornerRadius Discussion
Setting the radius to a value greater than 0.0 causes the layer to begin drawing rounded corners on its background. By default, the corner radius does not apply to the image in the layer’s contents property; it applies only to the background color and border of the layer. However, setting the masksToBounds property to YES causes the content to be clipped to the rounded corners.
The default value of this property is 0.0.
Availability
Available in iOS 3.0 and later.
Related Sample Code
- Formulaic
- GeocoderDemo
Declared In
CALayer.h