Ali Ali - 1 year ago 136
iOS Question

Bordered UITextView

I want to have a thin gray border around a

. I have gone through the Apple documentation but couldn't find any property there. Please help.

Answer Source
#import <QuartzCore/QuartzCore.h>


// typically inside of the -(void) viewDidLoad method
self.yourUITextView.layer.borderWidth = 5.0f;
self.yourUITextView.layer.borderColor = [[UIColor grayColor] CGColor];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download