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
The thing that made it work (in addition to following the answers here) is adding the borderStyle attribute:
borderStyle
#import .. phoneTextField.layer.borderWidth = 1.0f; phoneTextField.layer.borderColor = [[UIColor blueColor] CGColor]; phoneTextField.borderStyle = UITextBorderStyleNone;