其中:

layer.cornerRadius = 10  //圆角的度数

clipsToBounds = ture //除去边界,让其生效