尝试更改UINavigation bar阴影线并设置alpha值时出现问题。
目前无效:
let lineView: UIView = {
let view = UIView()
view.alpha = 0.3
view.layer.opacity = 0.3
view.backgroundColor = UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha: 0.3)
return view
}()
addSubview(lineView)
_ = lineView.anchor(nil, left: leftAnchor, bottom: bottomAnchor, right: rightAnchor, topConstant: 0, leftConstant: 0, bottomConstant: 0, rightConstant: 0, widthConstant: 0, heightConstant: 1)
我得到的是纯白色阴影颜色,而不是设置alpha。
之前有没有人遇到过这个问题?
由于