--- a/project_files/HedgewarsMobile/Classes/SplitViewRootController.m Tue Jul 20 23:30:54 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/SplitViewRootController.m Thu Jul 22 03:08:17 2010 +0200
@@ -35,12 +35,10 @@
[detailViewController release];
CGRect rect = [[UIScreen mainScreen] bounds];
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
+ if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
self.view.frame = CGRectMake(0, 0, rect.size.height, rect.size.width);
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
UISplitViewController *splitViewRootController = [[UISplitViewController alloc] init];
- //splitViewRootController.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
splitViewRootController.view.frame = CGRectMake(0, 0, rect.size.height, rect.size.width);
MasterViewController *masterViewController = [[MasterViewController alloc] initWithStyle:UITableViewStylePlain];
@@ -64,17 +62,14 @@
-(void) viewDidUnload {
detailViewController = nil;
+ MSG_DIDUNLOAD();
[super viewDidUnload];
- MSG_DIDUNLOAD();
}
-(void) dealloc {
[detailViewController release];
[super dealloc];
}
--(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{
- [detailViewController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
-}
#pragma mark -
#pragma mark additional methods as we're using a UINavigationController programmatically