|
|
@@ -75,12 +75,14 @@
|
|
|
|
|
|
|
|
|
- (void)initUI {
|
|
|
+ [self.navigationController.navigationBar setHidden:YES];
|
|
|
+
|
|
|
[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",@"t4"];
|
|
|
-
|
|
|
+// _tableZombieValues = @[@"t0", @"t1", @"t2", @"t3",@"t4"];
|
|
|
+ _tableZombieValues = @[@"t0", @"t1", @"t3",@"t4"];
|
|
|
[self initTableViewAsDefaultStyle:_tableView];
|
|
|
}
|
|
|
|
|
|
@@ -102,7 +104,9 @@
|
|
|
}
|
|
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
|
|
- return 5;
|
|
|
+
|
|
|
+ return 4;
|
|
|
+// return 5;
|
|
|
}
|
|
|
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
@@ -149,21 +153,21 @@
|
|
|
|
|
|
cell = tcell;
|
|
|
|
|
|
- }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){
|
|
|
+ }
|
|
|
+// 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 == 2){
|
|
|
AgreementAllTableViewCell *tcell = (AgreementAllTableViewCell * )[tableView dequeueReusableCellWithIdentifier:@"AllCellIdentifier"];
|
|
|
|
|
|
if (!_chkAll) {
|
|
|
@@ -176,7 +180,7 @@
|
|
|
|
|
|
cell = tcell;
|
|
|
|
|
|
- }else if (indexPath.row == 4) {//Guide
|
|
|
+ }else if (indexPath.row == 3) {//Guide
|
|
|
AgreementGuideTableViewCell *tcell = (AgreementGuideTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"GuideCellIdentifier"];
|
|
|
cell = tcell;
|
|
|
}
|
|
|
@@ -206,9 +210,11 @@
|
|
|
- (void)didCheckBoxClicked:(id)sender {
|
|
|
|
|
|
if ([sender isEqual:_chkAll]) {
|
|
|
- _chkTerm.checked = _chkService.checked = _chkLocation.checked =_chkAll.checked;
|
|
|
+// _chkTerm.checked = _chkService.checked = _chkLocation.checked =_chkAll.checked;
|
|
|
+ _chkTerm.checked = _chkService.checked =_chkAll.checked;
|
|
|
} else {
|
|
|
- if (_chkTerm.checked && _chkService.checked && _chkLocation.checked) {
|
|
|
+// if (_chkTerm.checked && _chkService.checked && _chkLocation.checked) {
|
|
|
+ if (_chkTerm.checked && _chkService.checked) {
|
|
|
_chkAll.checked = YES;
|
|
|
} else {
|
|
|
_chkAll.checked = NO;
|
|
|
@@ -226,12 +232,14 @@
|
|
|
|
|
|
UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"CertificationViewController" storyboardName:@"SignUp"];
|
|
|
|
|
|
- vc.providesPresentationContextTransitionStyle = YES;
|
|
|
- vc.definesPresentationContext = YES;
|
|
|
-
|
|
|
- [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
|
|
|
+// vc.providesPresentationContextTransitionStyle = YES;
|
|
|
+// vc.definesPresentationContext = YES;
|
|
|
+//
|
|
|
+// [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
|
|
|
+//
|
|
|
+// [self presentViewController:vc animated:YES completion:nil];
|
|
|
|
|
|
- [self presentViewController:vc animated:YES completion:nil];
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
|
|
|
- (IBAction)btnCancelTouched:(id)sender {
|