//
//  ProductDetailTopView.m
//  Open
//
//  Created by 雷俊博 on 2020/7/27.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "ProductDetailTopView.h"


@implementation ProductDetailTopView
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.lb_mark1.layer.cornerRadius = 3;
    self.lb_mark1.layer.borderColor = [UIColor whiteColor].CGColor;
    self.lb_mark2.layer.cornerRadius = 3;
    self.lb_mark2.layer.borderColor = [UIColor whiteColor].CGColor;
    self.lb_mark1.layer.borderWidth = 0.5;
    self.lb_mark2.layer.borderWidth = 0.5;
    
    self.lb_mark1.edgeInsets = UIEdgeInsetsMake(4, 4, 4, 4);//设置内边距
    
    self.lb_mark2.edgeInsets = UIEdgeInsetsMake(4, 4, 4, 4);//设置内边距
    
    [self.lb_mark1 sizeToFit];//重新计算尺寸，会执行Label内重写的方法
    [self.lb_mark2 sizeToFit];//重新计算尺寸，会执行Label内重写的方法
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
