How to mak开发者_如何学编程e UIlabel
roundRect shape ?
By changing background color of UILabel it looks like a rectangle in shape I want to make it look like a roundrect in shape.
Thanks.
first import file
#import <QuartzCore/QuartzCore.h>
and than set the property of UIlabel as
yourLabel.layer.cornerRadius = kCornerRadius;
If you mean to give the label a rounded-rectangle border, you can do that by setting the cornerRadius
, borderWidth
, and borderColor
properties of the label's layer.
精彩评论