| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // MPersonCenterCell.m
- // BuguLive
- //
- // Created by 丁凯 on 2017/8/23.
- // Copyright © 2017年 xfg. All rights reserved.
- //
- #import "MPersonCenterCell.h"
- @implementation MPersonCenterCell
- - (void)awakeFromNib
- {
- [super awakeFromNib];
- self.leftImgView.contentMode = UIViewContentModeScaleAspectFit;
- self.lefLabel.textColor = kAppGrayColor1;
- self.rightLabel.textColor = kAppGrayColor3;
-
-
- self.backgroundColor = kClearColor;
- self.contentView.backgroundColor = kClearColor;
-
-
- self.viewLeftConstraint.constant = kRealValue(12);
- self.viewRightConstraint.constant = kRealValue(12);
- }
- - (void)creatCellWithImgStr:(NSString *)imgStr andLeftStr:(NSString *)leftStr andRightStr:(NSString *)rightStr andSection:(int)section
- {
- self.leftImgView.image = [UIImage imageNamed:imgStr];
- self.lefLabel.text = leftStr;
- self.rightLabel.text = [rightStr isEqualToString:@"no"] ? @"" : rightStr;
-
- if ([rightStr isEqualToString:ASLocalizedString(@"未认证")]) {
- self.rightLabel.textColor = [UIColor colorWithHexString:@"#9152F8"];
- }
-
- // if (section == MPCOutPutSection) //控制右边的箭头是否显示
- // {
- // self.rightImgView.hidden = YES;
- // }else
- // {
- // self.rightImgView.hidden = NO;
- // }
-
- // if (section == MPCexchangeCoinsSection || section == MPCContributeSection) //控制左边图片的大小
- // {
- // CGRect rect = self.leftImgView.frame;
- // rect.size.height = 21;
- // self.leftImgView.frame = rect;
- // }else if (section == MPCGoodsMSection)
- // {
- // CGRect rect = self.leftImgView.frame;
- // rect.size.height = 22.5;
- // self.leftImgView.frame = rect;
- // }else
- // {
- // CGRect rect = self.leftImgView.frame;
- // rect.size.height = 20;
- // self.leftImgView.frame = rect;
- // }
-
- // if (section == MPCOutPutSection || section == MPCGameSISection ||section == MPCShopCartSection || section == MPCAutionMSection || section == MPCMyLitteShopSection ||section == MPCTradeSection ||section == MPCSetSection)
- // {
- // self.lineView.hidden = YES;
- // }else
- // {
- // self.lineView.hidden = NO;
- // self.lineView.top = kRealValue(44) + 7;
- // }
-
- // if (section == MPCContributeSection) {
- // self.rightLabel.hidden = YES;
- // }
-
-
-
- }
- @end
|