酷店

KDPBaseLabel.m 400B

1234567891011121314151617181920212223
  1. //
  2. // KDPBaseLabel.m
  3. // KuDianProject
  4. //
  5. // Created by admin on 2019/7/12.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #import "KDPBaseLabel.h"
  9. @implementation KDPBaseLabel
  10. - (void)drawTextInRect:(CGRect)rect{
  11. return [super drawTextInRect:UIEdgeInsetsInsetRect(rect, self.insets)];
  12. }
  13. - (void)setInsets:(UIEdgeInsets)insets{
  14. _insets = insets;
  15. [self setNeedsDisplay];
  16. }
  17. @end