修复bug
This commit is contained in:
@@ -54,19 +54,19 @@
|
||||
for (NSString *letter in letterList) {
|
||||
NSMutableArray *modelList = [NSMutableArray array];
|
||||
for (LoginAreaModel *model in list) {
|
||||
if([model.phone_area_code isEqualToString:@"886"]){
|
||||
if([model.code isEqualToString:@"886"]){
|
||||
TwModel = model;
|
||||
}
|
||||
if([model.phone_area_code isEqualToString:@"852"]){
|
||||
if([model.code isEqualToString:@"852"]){
|
||||
HKModel = model;
|
||||
}
|
||||
if([model.phone_area_code isEqualToString:@"65"]){
|
||||
if([model.code isEqualToString:@"65"]){
|
||||
SPModel = model;
|
||||
}
|
||||
if([model.phone_area_code isEqualToString:@"60"]){
|
||||
if([model.code isEqualToString:@"60"]){
|
||||
MYModel = model;
|
||||
}
|
||||
if([model.phone_area_code isEqualToString:@"86"]){
|
||||
if([model.code isEqualToString:@"86"]){
|
||||
ChinsModel = model;
|
||||
}
|
||||
NSString *fristLetter = [model.name substringWithRange:NSMakeRange(0, 1)];
|
||||
@@ -100,8 +100,10 @@
|
||||
[defaultList addObject:ChinsModel];
|
||||
}
|
||||
[self.listData insertObject:defaultList atIndex:0];
|
||||
[self.listData addObject:otherList];
|
||||
[self.titleList addObject:@"#"];
|
||||
if(otherList.count > 0){
|
||||
[self.listData addObject:otherList];
|
||||
[self.titleList addObject:@"#"];
|
||||
}
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
#pragma mark - UITableViewDelegate
|
||||
@@ -139,7 +141,7 @@
|
||||
LoginAreaModel *codeModel = model;
|
||||
if(self.delegate && [self.delegate respondsToSelector:@selector(chooseAreaCodeSuccess:)]){
|
||||
|
||||
[self.delegate chooseAreaCodeSuccess:codeModel.pi_phoneAreaCode ?: codeModel.phone_area_code];
|
||||
[self.delegate chooseAreaCodeSuccess:codeModel.code];
|
||||
}
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
|
Reference in New Issue
Block a user