|
|
@@ -15,7 +15,7 @@
|
|
|
@implementation AgreementTermTableViewCell
|
|
|
|
|
|
- (void)didMoveToSuperview {
|
|
|
- [_lblTitle setUnderLine:_lblTitle.text];
|
|
|
+// [_lblTitle setUnderLine:_lblTitle.text];
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
@@ -23,7 +23,15 @@
|
|
|
@implementation AgreementServiceTableViewCell
|
|
|
|
|
|
- (void)didMoveToSuperview {
|
|
|
- [_lblTitle setUnderLine:_lblTitle.text];
|
|
|
+// [_lblTitle setUnderLine:_lblTitle.text];
|
|
|
+}
|
|
|
+
|
|
|
+@end
|
|
|
+
|
|
|
+@implementation AgreementLocationTableViewCell
|
|
|
+
|
|
|
+- (void)didMoveToSuperview{
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@end
|
|
|
@@ -46,7 +54,7 @@
|
|
|
|
|
|
@interface AgreementViewController () <CustomCheckBoxDelegate> {
|
|
|
NSArray *_tableZombieValues;
|
|
|
- CustomCheckBox *_chkTerm, *_chkService, *_chkAll;
|
|
|
+ CustomCheckBox *_chkTerm, *_chkService, *_chkAll,*_chkLocation;
|
|
|
BOOL _isNotFirstLoading;
|
|
|
}
|
|
|
@end
|
|
|
@@ -67,8 +75,11 @@
|
|
|
|
|
|
|
|
|
- (void)initUI {
|
|
|
+ [self.btnCancle setBackgroundImage:[UIImage imageNamed:@"Common_button_left_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
|
|
|
+
|
|
|
+ [self.btnNext setBackgroundImage:[UIImage imageNamed:@"Common_button_right_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
|
|
|
|
|
|
- _tableZombieValues = @[@"t0", @"t1", @"t2", @"t3"];
|
|
|
+ _tableZombieValues = @[@"t0", @"t1", @"t2", @"t3",@"t4"];
|
|
|
|
|
|
[self initTableViewAsDefaultStyle:_tableView];
|
|
|
}
|
|
|
@@ -91,17 +102,17 @@
|
|
|
}
|
|
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
|
|
- return 4;
|
|
|
+ return 5;
|
|
|
}
|
|
|
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
- CGFloat height = 65;
|
|
|
+ CGFloat height = 67;
|
|
|
|
|
|
- if (indexPath.row == 2) {
|
|
|
- height = 80;
|
|
|
- } else if (indexPath.row == 3) {
|
|
|
- height = 120;
|
|
|
- }
|
|
|
+// if (indexPath.row == 2) {
|
|
|
+// height = 80;
|
|
|
+// } else if (indexPath.row == 3) {
|
|
|
+// height = 120;
|
|
|
+// }
|
|
|
|
|
|
return height;
|
|
|
}
|
|
|
@@ -137,7 +148,22 @@
|
|
|
tcell.chkAgree.checked = [tcell.chkAgree getCheckStatusFromValue];
|
|
|
|
|
|
cell = tcell;
|
|
|
- } else if (indexPath.row == 2) {
|
|
|
+
|
|
|
+ }else if (indexPath.row == 2) {
|
|
|
+ AgreementLocationTableViewCell *tcell = (AgreementLocationTableViewCell * )[tableView dequeueReusableCellWithIdentifier:@"locationCellIdentifier"];
|
|
|
+
|
|
|
+ if (!_chkLocation) {
|
|
|
+ _chkLocation = tcell.chkAgree;
|
|
|
+ }
|
|
|
+
|
|
|
+ tcell.chkAgree.delegate = self;
|
|
|
+ tcell.chkAgree.value = tzombie;
|
|
|
+ tcell.chkAgree.checked = [tcell.chkAgree getCheckStatusFromValue];
|
|
|
+
|
|
|
+ cell = tcell;
|
|
|
+
|
|
|
+
|
|
|
+ }else if (indexPath.row == 3){
|
|
|
AgreementAllTableViewCell *tcell = (AgreementAllTableViewCell * )[tableView dequeueReusableCellWithIdentifier:@"AllCellIdentifier"];
|
|
|
|
|
|
if (!_chkAll) {
|
|
|
@@ -149,7 +175,8 @@
|
|
|
tcell.chkAgree.checked = [tcell.chkAgree getCheckStatusFromValue];
|
|
|
|
|
|
cell = tcell;
|
|
|
- } else if (indexPath.row == 3) {//Guide
|
|
|
+
|
|
|
+ }else if (indexPath.row == 4) {//Guide
|
|
|
AgreementGuideTableViewCell *tcell = (AgreementGuideTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"GuideCellIdentifier"];
|
|
|
cell = tcell;
|
|
|
}
|
|
|
@@ -179,9 +206,9 @@
|
|
|
- (void)didCheckBoxClicked:(id)sender {
|
|
|
|
|
|
if ([sender isEqual:_chkAll]) {
|
|
|
- _chkTerm.checked = _chkService.checked = _chkAll.checked;
|
|
|
+ _chkTerm.checked = _chkService.checked = _chkLocation.checked =_chkAll.checked;
|
|
|
} else {
|
|
|
- if (_chkTerm.checked && _chkService.checked) {
|
|
|
+ if (_chkTerm.checked && _chkService.checked && _chkLocation.checked) {
|
|
|
_chkAll.checked = YES;
|
|
|
} else {
|
|
|
_chkAll.checked = NO;
|
|
|
@@ -197,7 +224,7 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"SignUpViewController" storyboardName:@"SignUp"];
|
|
|
+ UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"CertificationViewController" storyboardName:@"SignUp"];
|
|
|
|
|
|
vc.providesPresentationContextTransitionStyle = YES;
|
|
|
vc.definesPresentationContext = YES;
|