一:加边框/圆角 使用xib加边框/圆角 layer.borderWidth 边框宽度 layer.borderColorWithUIColor 边框颜色 layer.cornerRadius 圆角 layer.masksToBounds 2.