我想在 UITextView
周围设置一个细灰色边框。我已经浏览了 Apple 文档,但在那里找不到任何属性。请帮忙。
最佳答案
#import <QuartzCore/QuartzCore.h>
....
// typically inside of the -(void) viewDidLoad method
self.yourUITextView.layer.borderWidth = 5.0f;
self.yourUITextView.layer.borderColor = [[UIColor grayColor] CGColor];
关于ios - 带边框的 UITextView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2647164/