project_files/HedgewarsMobile/Classes/SettingsBaseViewController.m
changeset 6319 b57a37a94ad3
parent 6076 e1b4771f6472
child 6672 4f728ccdd06b
--- a/project_files/HedgewarsMobile/Classes/SettingsBaseViewController.m	Thu Nov 10 17:37:24 2011 -0500
+++ b/project_files/HedgewarsMobile/Classes/SettingsBaseViewController.m	Fri Nov 11 00:23:09 2011 +0100
@@ -284,5 +284,18 @@
     [super dealloc];
 }
 
+
+-(void) viewWillDisappear:(BOOL)animated {
+    // this will send -viewWillDisappear: only the active view
+    [self.tabController viewWillDisappear:animated];
+    // let's send that to every page, even though only GeneralSettingsViewController needs it
+    [generalSettingsViewController viewWillDisappear:animated];
+    [teamSettingsViewController viewWillDisappear:animated];
+    [weaponSettingsViewController viewWillDisappear:animated];
+    [schemeSettingsViewController viewWillDisappear:animated];
+    [supportViewController viewWillDisappear:animated];
+    [super viewWillDisappear:animated];
+}
+
 @end