0
我想補充的底邊框像下面的圖像,我已經成功地將botom線,但我沒有得到側小線IOS如何添加邊框底部和側面設計到文本框
這裏是我的代碼
CALayer *border = [CALayer layer];
CGFloat borderWidth = 1;
border.borderColor = [UIColor lightGrayColor].CGColor;
border.frame = CGRectMake(0, textField.frame.size.height - borderWidth, textField.frame.size.width, textField.frame.size.height);
border.borderWidth = borderWidth;
[textField.layer addSublayer:border];
textField.layer.cornerRadius=30;
textField.layer.masksToBounds = YES;