我有一个程序:
[textView setFont:[UIFont fontWithName:@"ArialMT" size:20]];
[textView setEditable:NO];
[textView setScrollEnabled:NO];
[textView.layer setMasksToBounds:NO];
[textView.layer setBorderColor: [[UIColor lightGrayColor] CGColor]];
[textView.layer setBorderWidth:1.0f];
textView.layer.shadowColor = [[UIColor lightGrayColor]CGColor];
textView.layer.shadowOpacity = 1.0f;
textView.layer.shadowRadius = 5.0f;
[textView.layer setShadowOffset:CGSizeMake(2, 2)];
此代码为UITextView设置了阴影和边框,但是如何设置textview的边框不包括顶线,只为左,右和底线设置边框?