1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //
- // WarDetailCell.m
- // LN_School
- //
- // Created by EchoShacolee on 2017/8/12.
- // Copyright © 2017年 Danson. All rights reserved.
- //
- #import "WarDetailCell.h"
- @implementation WarDetailCell
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- }
- - (void)layoutSubviews
- {
- [super layoutSubviews];
- for (UIControl *control in self.subviews) {
- if (![control isMemberOfClass:NSClassFromString(@"UITableViewCellEditControl")]){
- continue;
- }
-
- for (UIView *subView in control.subviews) {
- if (![subView isKindOfClass: [UIImageView class]]) {
- continue;
- }
-
-
- [subView setValue:RQMianColor forKey:@"tintColor"];
-
- // UIImageView *imageView = (UIImageView *)subView;
- // if (self.selected) {
- // imageView.image = [UIImage imageNamed:@"ic_squSelect_h"]; // 选中时的图片
- // } else {
- // imageView.image = [UIImage imageNamed:@"ic_squSelect"]; // 未选中时的图片
- // }
- }
- }
- }
- -(void)setDic:(NSDictionary *)dic{
-
- /*
- CRDATE = "2017-08-08 00:00:00";
- ID = 2;
- LICNUM = "";
- SIM = 13805910002;
- STATUS = 1;
- */
- _dic = dic;
-
- _LicNumLab.text = [NSString stringWithFormat:@"%@",dic[@"LICNUM"]];
-
- if ([dic[@"STATUS"] isEqualToString:@"0"]) {
- _statuLab.text = @"已解除";
- _statuLab.textColor = [UIColor darkGrayColor];
- }else{
- _statuLab.text = @"未解除";
- _statuLab.textColor = [UIColor redColor];
- }
-
- _simLab.text =[NSString stringWithFormat:@"手机: %@",dic[@"SIM"]];;
-
- _dateLab.text = dic[@"CRDATE"];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|