ifish/Ifish/controllers/IfishTabControllers/我的/mineViews/infoViewCell/InfoXingBieCell.m

40 lines
984 B
Objective-C

//
// InfoXingBieCell.m
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import "InfoXingBieCell.h"
@implementation InfoXingBieCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.backgroundView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"set_cellBack"]];
}
-(void)loadXingBieWith:(UserModel*)model{
if ([model.userSex isKindOfClass:[NSNull class]] ) {
self.InfoXingBieBtn.titleLabel.text=@"";
}else if ([model.userSex isEqualToString:@"1"]){
[self.InfoXingBieBtn setTitle:@"" forState:UIControlStateNormal];
}else if ([model.userSex isEqualToString:@"0"]){
[self.InfoXingBieBtn setTitle:@"" forState:UIControlStateNormal];
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end