project_files/HedgewarsMobile/Classes/SettingsContainerViewController.m
author koda
Sat, 28 Dec 2013 21:24:23 +0100
branch0.9.20
changeset 9856 891eb7fcc26c
parent 6832 fae8fd118da9
child 10108 c68cf030eded
permissions -rw-r--r--
correctly handle @rpath
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3829
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     1
/*
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
6700
e04da46ee43c the most important commit of the year
koda
parents: 6678
diff changeset
     3
 * Copyright (c) 2009-2012 Vittorio Giovara <vittorio.giovara@gmail.com>
3829
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     4
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     8
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    12
 * GNU General Public License for more details.
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    13
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    14
 * You should have received a copy of the GNU General Public License
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    15
 * along with this program; if not, write to the Free Software
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    17
 */
81db3c85784b headers ftw, also right project file
koda
parents: 3783
diff changeset
    18
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
6075
0173cd44c3bc rename the ios settings files into something more appropriate
koda
parents: 6074
diff changeset
    20
#import "SettingsContainerViewController.h"
0173cd44c3bc rename the ios settings files into something more appropriate
koda
parents: 6074
diff changeset
    21
#import "SettingsBaseViewController.h"
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    22
#import "MGSplitViewController.h"
6078
8c0cc07731e5 headers cleanup, converted some function-only sources into proper class method files, more use of OOP power, removed some 'respondsToSelector' calls, moved defines into their own header, more use of objc categories
koda
parents: 6076
diff changeset
    23
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
6075
0173cd44c3bc rename the ios settings files into something more appropriate
koda
parents: 6074
diff changeset
    25
@implementation SettingsContainerViewController
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    26
@synthesize baseController, splitViewRootController;
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
    return rotationManager(interfaceOrientation);
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    32
-(void) viewDidLoad {
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    33
    CGRect screenRect = [[UIScreen mainScreen] safeBounds];
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    34
    self.view.frame = screenRect;
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    35
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    36
    if (IS_IPAD()) {
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    37
        // the contents on the right of the splitview, setting targetController to nil to avoid creating the table
6075
0173cd44c3bc rename the ios settings files into something more appropriate
koda
parents: 6074
diff changeset
    38
        SettingsBaseViewController *rightController = [[SettingsBaseViewController alloc] init];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    39
        rightController.targetController = nil;
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    40
        UINavigationController *rightNavController = [[UINavigationController alloc] initWithRootViewController:rightController];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    41
        [rightController release];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    42
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    43
        // the contens on the left of the splitview, setting targetController that will receive push/pop actions
6075
0173cd44c3bc rename the ios settings files into something more appropriate
koda
parents: 6074
diff changeset
    44
        SettingsBaseViewController *leftController = [[SettingsBaseViewController alloc] init];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    45
        leftController.targetController = rightNavController.topViewController;
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    46
        UINavigationController *leftNavController = [[UINavigationController alloc] initWithRootViewController:leftController];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    47
        [leftController release];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    48
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    49
        self.splitViewRootController = [[MGSplitViewController alloc] init];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    50
        self.splitViewRootController.delegate = nil;
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    51
        self.splitViewRootController.view.frame = screenRect;
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    52
        self.splitViewRootController.viewControllers = [NSArray arrayWithObjects: leftNavController, rightNavController, nil];
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
    53
        self.splitViewRootController.showsMasterInPortrait = YES;
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    54
        [leftNavController release];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    55
        [rightNavController release];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    56
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    57
        // add view to main controller
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    58
        [self.view addSubview:self.splitViewRootController.view];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    59
    } else {
6076
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    60
        if (nil == self.baseController) {
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    61
            SettingsBaseViewController *sbvc = [[SettingsBaseViewController alloc] init];
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    62
            self.baseController = sbvc;
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    63
            [sbvc release];
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    64
        }
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    65
        self.baseController.targetController = nil;
6678
beab48f963d5 restored interface on iphone
koda
parents: 6672
diff changeset
    66
        self.baseController.view.frame = screenRect;
6076
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    67
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    68
        [self.view addSubview:self.baseController.view];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    69
    }
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    70
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    71
    [super viewDidLoad];
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    72
}
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    73
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    74
#pragma mark -
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    75
#pragma mark Memory management
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    76
-(void) didReceiveMemoryWarning {
6076
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    77
    if (self.baseController.view.superview == nil)
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    78
        self.baseController = nil;
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    79
    if (self.splitViewRootController.view.superview == nil)
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    80
        self.splitViewRootController = nil;
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    81
    MSG_MEMCLEAN();
3971
5c82ee165ed5 minor stuff
koda
parents: 3829
diff changeset
    82
    [super didReceiveMemoryWarning];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    83
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    84
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    85
-(void) viewDidUnload {
6076
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    86
    self.baseController = nil;
4356
d1d26f8963a3 update some files for new graphics and new ios4.2
koda
parents: 3996
diff changeset
    87
    self.splitViewRootController = nil;
3662
a44406f4369b polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents: 3547
diff changeset
    88
    MSG_DIDUNLOAD();
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    89
    [super viewDidUnload];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    90
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    91
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    92
-(void) dealloc {
6076
e1b4771f6472 fix a couple of 'potential leaks'
koda
parents: 6075
diff changeset
    93
    releaseAndNil(baseController);
5208
878e551f0b4a all together now! releaseAndNil ftw
koda
parents: 4976
diff changeset
    94
    releaseAndNil(splitViewRootController);
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    95
    [super dealloc];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    96
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    97
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 6000
diff changeset
    98
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    99
#pragma mark -
6319
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   100
#pragma mark view event management propagation
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   101
// every time we add a uiviewcontroller programmatically we need to take care of propgating such messages
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   102
// see http://davidebenini.it/2009/01/03/viewwillappear-not-being-called-inside-a-uinavigationcontroller/
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   103
-(void) viewWillAppear:(BOOL)animated {
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   104
    [self.splitViewRootController.detailViewController viewWillAppear:animated];
6319
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   105
    [self.baseController viewWillAppear:animated];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   106
    [super viewWillAppear:animated];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   107
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   108
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   109
-(void) viewWillDisappear:(BOOL)animated {
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   110
    [self.splitViewRootController.detailViewController viewWillDisappear:animated];
6319
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   111
    [self.baseController viewWillDisappear:animated];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   112
    [super viewWillDisappear:animated];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   113
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   114
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   115
-(void) viewDidAppear:(BOOL)animated {
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   116
    [self.splitViewRootController.detailViewController viewDidAppear:animated];
6319
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   117
    [self.baseController viewDidAppear:animated];
6672
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   118
    [super viewDidAppear:animated];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   119
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   120
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   121
-(void) viewDidDisappear:(BOOL)animated {
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   122
    [self.splitViewRootController.detailViewController viewDidDisappear:animated];
6319
b57a37a94ad3 restore a lost view message
koda
parents: 6078
diff changeset
   123
    [self.baseController viewDidDisappear:animated];
6672
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   124
    [super viewDidDisappear:animated];
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   125
}
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   126
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   127
-(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   128
    [self.splitViewRootController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   129
    [self.baseController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   130
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   131
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   132
-(void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
6672
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   133
    [self.splitViewRootController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   134
    [self.baseController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   135
}
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   136
6672
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   137
-(void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   138
    [self.splitViewRootController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
4f728ccdd06b fixed a little event propagation problem, added rotation support to the scheme setting page
koda
parents: 6658
diff changeset
   139
    [self.baseController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
6658
2cccf6b2b89d added MGSplitViewController, popular replacement for uisplitviewcontrollers: this brings rotation support to our settings pages! weapons and schemes are the only controllers displaying minor glitches
koda
parents: 6319
diff changeset
   140
}
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   141
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   142
@end