bgView.layer.borderWidth = 1; // 边框宽度 bgView.layer.borderColor = [[UIColor lightGrayColor] CGColor]; //边框颜色