You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
544 B
28 lines
544 B
1 year ago
|
//
|
||
|
// MyUILabel.m
|
||
|
// tongxin
|
||
|
//
|
||
|
// Created by ecell on 2021/6/9.
|
||
|
// Copyright © 2021 xTT. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "MyUILabel.h"
|
||
|
|
||
|
@implementation MyUILabel
|
||
|
|
||
|
/*
|
||
|
// Only override drawRect: if you perform custom drawing.
|
||
|
// An empty implementation adversely affects performance during animation.
|
||
|
- (void)drawRect:(CGRect)rect {
|
||
|
// Drawing code
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
- (void)drawTextInRect:(CGRect)rect {
|
||
|
// 边距,上左下右
|
||
|
UIEdgeInsets insets = {10, 10, 10, 10};
|
||
|
[super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)];
|
||
|
}
|
||
|
|
||
|
@end
|