| 1234567891011121314151617181920 |
- //
- // BGPaddingLabel.m
- // BuguLive
- //
- // Created by xfg on 2017/7/11.
- // Copyright © 2017年 xfg. All rights reserved.
- //
- #import "BGPaddingLabel.h"
- @implementation BGPaddingLabel
- - (void)drawRect:(CGRect)rect
- {
- // 边距,上左下右
- UIEdgeInsets insets = {0, 5, 0, 5};
- [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)];
- }
- @end
|