开发者

Round corners to textview in iPhone [duplicate]

This question already has answers here: Closed 11 years a开发者_如何学运维go.

Possible Duplicate:

how to set rounded corner for a UITextView ?

How can we give round corners to the textview in iPhone.

Please help


For all those who are still searching

you have to import

QuartzCore/QuartzCore.h


UITextView* txtView = [[UITextView alloc] initWithFrame:CGRectMake(50, 50, 300, 100)];
txtView.layer.cornerRadius = 5.0;
txtView.clipsToBounds = YES;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜