/**为view设置圆角**/ view.layer.masksToBounds = true view.layer.cornerRadius = 45.0 转载于:https://www.cnblogs.com/littleZ/p/4737313.html