I want to have a thin gray border around a UITextView. I have gone through the Apple documentation but couldn\'t find any property there. Please help.
UITextView
Here's the code I used, to add a border around my TextView control named "tbComments" :
TextView
self.tbComments.layer.borderColor = [[UIColor grayColor] CGColor]; self.tbComments.layer.borderWidth = 1.0; self.tbComments.layer.cornerRadius = 8;
And here's what it looks like:
Easy peasy.