草庐IT

subscriptionsViewController

全部标签

ios - 不能圆 UIViewController 的所有角落

我正在尝试圆化UIViewController的所有角。在我的ViewController中,我有以下内容:overridefuncviewDidLoad(){super.viewDidLoad()letmaskLayer=CAShapeLayer()maskLayer.path=UIBezierPath(roundedRect:view.bounds,byRoundingCorners:.AllCorners,cornerRadii:CGSize(width:10,height:10)).CGPathview.layer.mask=maskLayerletmargin=CGFloat