开发者

Round corners to textview in iPhone [duplicate]

开发者 https://www.devze.com 2023-03-04 06:37 出处:网络
This question already has answers here: Closed 11 years a开发者_如何学运维go. Possible 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

精彩评论

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