唉。选择初始设备View(6秒)后,我所有的边框都完全搞砸了。我使用了以下代码:funcroundButtonLeft(button:UIButton){letpath=UIBezierPath(roundedRect:button.bounds,byRoundingCorners:[.topLeft,.bottomLeft],cornerRadii:CGSize(width:10,height:10))letmaskLayer=CAShapeLayer()maskLayer.path=path.cgPathletframeLayer=CAShapeLayer()frameLayer.