| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // JOTableViewCell.m
- // shiku_im
- //
- // Created by on 16/9/6.
- // Copyright © 2016年 Reese. All rights reserved.
- #import "JOTableViewCell.h"
- #import "JODYModel.h"
- @implementation JOTableViewCell
- -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
-
- if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
- self.image1 = [[UIImageView alloc]initWithFrame:CGRectMake(10, 7.5, 40, 40)];
-
- self.lable1 = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.image1.frame)+10,7.5,SCREEN_WIDTH-100-60-88 , 50+cellScale -7.5)];
- self.lable1.verticalAlignment = NSTextVerticalAlignmentTop;
- self.lable1.numberOfLines = 0;
- self.lable1.font = FONT_SIZE(12);
-
-
- self.button1 = [[ZXsubButton alloc]initWithFrame:CGRectMake(SCREEN_WIDTH -100-88,7.8, 90, 20)];
-
- self.button1.titleLabel.font = FONT_SIZE(12);
- self.button1.titleLabel.textAlignment = NSTextAlignmentRight;
- self.button1.titleLabel.verticalAlignment = NSTextVerticalAlignmentTop;
- [self.contentView addSubview:self.image1];
- [self.contentView addSubview:self.lable1];
- [self.contentView addSubview:self.button1];
-
- }
- return self;
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // self.contentView.backgroundColor = selected ? [UIColor whiteColor] : [UIColor colorWithWhite:0 alpha:0.1];
-
-
- }
- @end
|