// // MyWalletCell.m // model // // Created by zuxiukuan on 2018/7/15. // Copyright © 2018年 Mine. All rights reserved. // 我的钱包cell #import "MyWalletCell.h" @interface MyWalletCell () @end @implementation MyWalletCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { // self.selectionStyle = UITableViewCellSelectionStyleNone; [self creatCellSubViews]; } return self; } - (void)creatCellSubViews { // CGRect frame = CGRectMake(20, 15, 20, 20); self.iconImageView = [[UIImageView alloc] initWithFrame:frame]; [self.contentView addSubview:self.iconImageView]; // self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.iconImageView.frame) + 12, 15, ScreenWidth / 2, 20)]; self.titleLabel.textAlignment = NSTextAlignmentLeft; self.titleLabel.textColor = RGBValueColor(0x333333, 1.0); self.titleLabel.font = [UIFont systemFontOfSize:16]; [self.contentView addSubview:self.titleLabel]; // self.arrowView = [[UIImageView alloc] initWithFrame:CGRectMake(ScreenWidth - 28, 18, 8, 14)]; self.arrowView.image = [UIImage imageNamed:@"youjiantou"]; [self.contentView addSubview:self.arrowView]; // self.lineView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 49, ScreenWidth, 1)]; self.lineView.image = [UIImage imageNamed:@"fengexian"]; [self.contentView addSubview:self.lineView]; } - (void)layoutSubviews { [super layoutSubviews]; // NSLog(@"frame = %@", NSStringFromCGRect(self.frame)); } @end