摘要:
.h文件#import @interface CustomLabel : UILabel{ BOOL _isEnabled;}@property (nonatomic ) BOOL isEnabled;@end.m文件#import "CustomLabel.h"@implementation CustomLabel@synthesize isEnabled = _isEnabled;- (void)drawTextInRect:(CGRect)rect{ [super drawTextInRect:rect]; CGSize textSize = [[self te... 阅读全文