diff --git a/Child Labor/EnforceTableViewController.swift b/Child Labor/EnforceTableViewController.swift
index e2668a2..faa4649 100755
--- a/Child Labor/EnforceTableViewController.swift
+++ b/Child Labor/EnforceTableViewController.swift
@@ -94,8 +94,8 @@ class EnforceTableViewController: UITableViewController {
setEnforcement(self.laborRoutineTargetedLabel, text: enforcements["Labor_Routine_Inspections_Targeted"].element?.text)
setEnforcement(self.laborUnannouncedPremittedLabel, text: enforcements["Labor_Unannounced_Inspections_Premitted"].element?.text)
setEnforcement(self.laborUnannouncedConductedLabel, text: enforcements["Labor_Unannounced_Inspections_Conducted"].element?.text)
- setEnforcement(self.laborEmployeeTrainingLabel, text: enforcements["Labor_New_Employee_Training"].element?.text)
- setEnforcement(self.laborLawTrainingLabel, text: enforcements["Labor_New_Law_Training"].element?.text)
+// setEnforcement(self.laborEmployeeTrainingLabel, text: enforcements["Labor_New_Employee_Training"].element?.text)
+ // setEnforcement(self.laborLawTrainingLabel, text: enforcements["Labor_New_Law_Training"].element?.text)
// setEnforcement(self.laborRefresherCoursesLabel, text: enforcements["Labor_Refresher_Courses"].element?.text)
setEnforcement(self.laborComplaintMechanismLabel, text: enforcements["Labor_Complaint_Mechanism"].element?.text)
setEnforcement(self.laborReferralMechanismLabel, text: enforcements["Labor_Referral_Mechanism"].element?.text)
@@ -163,7 +163,7 @@ class EnforceTableViewController: UITableViewController {
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
- return 9
+ return 8
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
@@ -171,28 +171,28 @@ class EnforceTableViewController: UITableViewController {
if state == 0 {
switch section {
case 0:
- return 4
+ return 5
+// case 1:
+// return 0//1
case 1:
return 1
case 2:
- return 1
- case 3:
return 3
+ case 3:
+ return 2
case 4:
return 2
case 5:
return 2
- case 6:
- return 2
default:
return 0
}
}
else {
switch section {
- case 7:
+ case 6:
return 1
- case 8:
+ case 7:
return 5
default:
return 0
@@ -206,11 +206,14 @@ class EnforceTableViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
- if (state == 0 && section <= 6) {
+ if (state == 0 && section <= 5) {
+ if section == 0 {
+ return 0
+ }
return UITableViewAutomaticDimension;
}
- if (state == 1 && section >= 7) {
+ if (state == 1 && section >= 6) {
return UITableViewAutomaticDimension;
}
@@ -218,14 +221,14 @@ class EnforceTableViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
- if (state == 0 && section <= 6) {
- return UITableViewAutomaticDimension;
+ if (state == 0 && section <= 5) {
+ return UITableViewAutomaticDimension;
}
- if (state == 1 && section > 6) {
+ if (state == 1 && section > 5) {
return UITableViewAutomaticDimension;
}
@@ -233,11 +236,11 @@ class EnforceTableViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
- if (state == 0 && section <= 6) {
+ if (state == 0 && section <= 5) {
return super.tableView(tableView, titleForHeaderInSection: section)
}
- if (state == 1 && section > 6) {
+ if (state == 1 && section > 5) {
return super.tableView(tableView, titleForHeaderInSection: section)
}
@@ -245,7 +248,7 @@ class EnforceTableViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? {
- if (state == 0 && section <= 6) {
+ if (state == 0 && section <= 5) {
if (section == 6 && self.hasLaborFooter) {
// return "*The government does not publish this information";
return " ";
@@ -253,8 +256,8 @@ class EnforceTableViewController: UITableViewController {
return super.tableView(tableView, titleForFooterInSection: section)
}
- if (state == 1 && section > 6) {
- if (section == 8 && self.hasCriminalFooter) {
+ if (state == 1 && section > 5) {
+ if (section == 7 && self.hasCriminalFooter) {
// return "*The government does not publish this information";
return " ";
}
diff --git a/Child Labor/Main.storyboard b/Child Labor/Main.storyboard
index 7166668..063dd6f 100644
--- a/Child Labor/Main.storyboard
+++ b/Child Labor/Main.storyboard
@@ -438,7 +438,7 @@
-
+
@@ -2893,24 +2893,20 @@ Standards
-
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -2995,13 +2929,13 @@ Standards
-
+
-
+
@@ -3011,7 +2945,7 @@ Standards
-
+
@@ -3034,7 +2968,7 @@ Standards
-
+
@@ -3068,7 +3002,7 @@ Standards
-
+
@@ -3100,7 +3034,7 @@ Standards
-
+
@@ -3136,7 +3070,7 @@ Standards
-
+
@@ -3166,7 +3100,7 @@ Standards
-
+
@@ -3200,7 +3134,7 @@ Standards
-
+
@@ -3230,7 +3164,7 @@ Standards
-
+
@@ -3264,7 +3198,7 @@ Standards
-
+
@@ -3295,7 +3229,7 @@ Standards
-
+
@@ -3331,19 +3265,19 @@ Standards
-
+
-
+
-
+
@@ -3362,19 +3296,19 @@ Standards
-
+
-
+
-
+
@@ -3393,19 +3327,19 @@ Standards
-
+
-
+
-
+
@@ -3428,20 +3362,20 @@ Standards
-
+
-
+
-
+
@@ -3459,20 +3393,20 @@ Standards
-
+
-
+
-
+
@@ -3491,20 +3425,20 @@ Standards
-
+
-
+
-
+
@@ -3522,20 +3456,20 @@ Standards
-
+
-
+
-
+
@@ -3554,7 +3488,7 @@ Standards
-
+
@@ -3604,15 +3538,12 @@ Standards
-
-
-