iOS开发知识

手把手教你怎么如何使用分类(category)

2019-03-05  本文已影响7人  太阳骑士索拉尔

前言

参考文章

分类(category)的用处和存在意义

详细步骤

//
//  UILabel+LabelHeight.h
//  zhihu-daily-ImitationDemo
//
//  Created by mac on 2018/11/23.
//  Copyright © 2018 姜凯文. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel(LabelHeight)


@end


//
//  UILabel+LabelHeight.m
//  zhihu-daily-ImitationDemo
//
//  Created by mac on 2018/11/23.
//  Copyright © 2018 姜凯文. All rights reserved.
//

#import "UILabel+LabelHeight.h"

@implementation UILabel(LabelHeight)


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end

上一篇 下一篇

猜你喜欢

热点阅读