// // 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