self.timestampLabel.layer.masksToBounds = YES;
self.timestampLabel.layer.cornerRadius = 6.0f;
viewT.layer.borderWidth = 10;//设置边框的宽度,当然可以不要
注:只写第二条代码有时不显示圆角
self.timestampLabel.layer.cornerRadius = 6.0f;
viewT.layer.borderWidth = 10;//设置边框的宽度,当然可以不要