Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set rounded corner for a UITextView?

how to set rounded corner for a UITextView ?

like image 626
Arun Abraham Avatar asked Oct 13 '10 11:10

Arun Abraham


1 Answers

fist import the file

#import <QuartzCore/QuartzCore.h>

and then set the property of your text view

yourTextViewName.layer.cornerRadius = kCornerRadius;

where kCornerRadius is a constant you set as a radius for corner

like image 60
Gyani Avatar answered Oct 26 '22 07:10

Gyani