设置view任意边框border
2018-03-02 本文已影响28人
无沣
CALayer *bottomBorder = [CALayer layer];
bottomBorder.frame = CGRectMake(0.0f, 0.0f, 1.0f, _userPhoneTF.frame.size.height);
bottomBorder.backgroundColor = [UIColor colorWithWhite:0.8f
alpha:1.0f].CGColor;
[view.layer addSublayer:bottomBorder];