new login style

This commit is contained in:
lianxiang
2018-10-15 19:26:07 +08:00
parent 71f6176cea
commit 94ce6d3e14
30 changed files with 533 additions and 218 deletions
-4
View File
@@ -21,10 +21,6 @@
self.infoTitle.text = @"个人信息";
self.numberLabe.hidden = YES;
}else if (indexPath.section == 1 && indexPath.row == 1){
//修改密码
self.infoTitle.text = @"修改密码";
self.numberLabe.hidden = YES;
}else if (indexPath.section == 1 && indexPath.row == 2){
//修改手机
self.infoTitle.text = @"修改手机";
self.numberLabe.hidden = NO;
@@ -16,6 +16,7 @@
[self.usermale addTarget:self action:@selector(usermaleClick) forControlEvents:UIControlEventTouchUpInside];
[self.usefemale addTarget:self action:@selector(userfemaleClick) forControlEvents:UIControlEventTouchUpInside];
}
-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user{
int sex = user.sexCode;
@@ -25,7 +26,8 @@
-(void)configUserSex:(int)sex{
if (sex == 2) {
if (sex == 2 || sex == 0) {
[self.usefemale setImage:[UIImage imageNamed:@"sex_selected"] forState:UIControlStateNormal];
[self.usermale setImage:[UIImage imageNamed:@"sex_disselect"] forState:UIControlStateNormal];
}else{
@@ -43,6 +45,7 @@
self.actionblock(2);
[self configUserSex:2];
}
-(void)userSelectSexAction:(femaleBtnAction)block{
self.actionblock = block;
}