new login style
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
if (section == 0){
|
||||
return 1;
|
||||
}
|
||||
return 3;
|
||||
return 2;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||
@@ -117,15 +117,11 @@
|
||||
[self.navigationController pushViewController:userVC animated:YES];
|
||||
|
||||
}else{
|
||||
|
||||
if (indexPath.section == 1 && indexPath.row == 0 ){
|
||||
GiGaUserViewController *userVC= [[GiGaUserViewController alloc] init];
|
||||
[self.navigationController pushViewController:userVC animated:YES];
|
||||
|
||||
}else if (indexPath.section == 1 && indexPath.row == 1){
|
||||
|
||||
GIGaChangePassVC *changePass = [[GIGaChangePassVC alloc] init];
|
||||
[self.navigationController pushViewController:changePass animated:YES];
|
||||
|
||||
}else{
|
||||
|
||||
GiGaChangePhoneNumberVC *changePass = [[GiGaChangePhoneNumberVC alloc] init];
|
||||
@@ -133,6 +129,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
@property(nonatomic,assign) int sexCode;
|
||||
@property(nonatomic,copy) NSString *sexName;
|
||||
@property(nonatomic,copy) NSString *weixin;
|
||||
|
||||
@property(nonatomic) int minute;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user