1.cell .h文件
// WorkReportCell.h
// GOSProject
//
// Created by on 2017/5/11.
// Copyright © 2017年 All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WorkReportCell : UITableViewCell
@property (nonatomic, strong) UIImageView * imageView1;
@property (nonatomic, strong) UILabel * nameLabel;
@property (nonatomic, strong) UILabel * timeLabel1;
@property (nonatomic, strong) UILabel * rightTimeLabel;
@property (nonatomic, strong) UILabel * todayLabel;//上面label
@property (nonatomic, strong) UILabel * tomorrowLabel;//中间label
@property (nonatomic, strong) UILabel * suggestLabel;//下面的label
@property (nonatomic, strong) UIView * lineView;
@property (nonatomic, strong) UIView * bottomLineView;
//多个label的自动换行
-(void)setIntroductionText:(NSString*)text dayLabel:(NSString*)text1 suggestLabel:(NSString*)text2;
@end
2.cell.m文件
#import "WorkReportCell.h"
@implementation WorkReportCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
[self initUIControl];
}
return self;
}
-(void)initUIControl
{
_imageView1 = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 40, 40)];
//