build to 486

This commit is contained in:
xuemh
2018-07-24 22:47:33 +08:00
parent 9444a289d6
commit e1fef71a9a
13 changed files with 466 additions and 65 deletions
@@ -13,6 +13,9 @@
#import "ChangeSecretCodeController.h"
#define TUICHUAlertTAg 4100
#import "IfishUserDefaultHelper.h"
#import "RestartViewController.h"
#import "SettingResetViewController.h"
@interface IfishSetViewController ()<UITableViewDelegate,UITableViewDataSource,UIAlertViewDelegate>
@property(nonatomic,strong)UITableView *tableView;
@@ -32,8 +35,8 @@ extern BOOL firstLogIn;
}
-(void)loadData{
self.titles=@[@[@"更换手机",@"修改密码"],@[@"切换账号"]];
self.imgs = @[@[@"personal_iocn_replace",@"replace_iocn_code"],@[@"personal_iocn_switch"]];
self.titles=@[@[@"更换手机",@"修改密码",@"设备重启",@"恢复出厂模式"],@[@"切换账号"]];
self.imgs = @[@[@"personal_iocn_replace",@"replace_iocn_code",@"replace_iocn_code",@"replace_iocn_code"],@[@"personal_iocn_switch"]];
}
-(void)creatTab{
@@ -61,16 +64,12 @@ extern BOOL firstLogIn;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
if (section==1) {
return 1;
}
return 2;
return [self.titles[section] count];
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 2;
return self.titles.count;
}
@@ -120,7 +119,17 @@ extern BOOL firstLogIn;
ChangeSecretCodeController *secretVC=[[ChangeSecretCodeController alloc]init];
[self.navigationController pushViewController:secretVC animated:YES];
}else if (indexPath.section==1&&indexPath.row==0){
} else if (indexPath.section == 0 && indexPath.row == 2) {
self.hidesBottomBarWhenPushed = YES;
RestartViewController *vc = [[RestartViewController alloc] initWithNibName:@"RestartViewController" bundle:nil];
vc.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:vc animated:YES];
} else if (indexPath.section == 0 && indexPath.row == 3) {
self.hidesBottomBarWhenPushed = YES;
SettingResetViewController *vc = [[SettingResetViewController alloc] initWithNibName:@"SettingResetViewController" bundle:nil];
vc.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:vc animated:YES];
} else if (indexPath.section==1&&indexPath.row==0){
UIAlertView*alert=[[UIAlertView alloc]initWithTitle:@"提醒" message:@"确认切换账号并重新登录?" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
alert.tag=TUICHUAlertTAg;