equal
deleted
inserted
replaced
109 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl; |
109 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl; |
110 #endif |
110 #endif |
111 [self presentModalViewController:gameConfigViewController animated:YES]; |
111 [self presentModalViewController:gameConfigViewController animated:YES]; |
112 break; |
112 break; |
113 case 2: |
113 case 2: |
114 /* |
114 if (nil == settingsViewController) { |
115 if (nil == splitRootViewController) { |
115 settingsViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil]; |
116 splitRootViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil]; |
116 settingsViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
117 splitRootViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
|
118 } |
117 } |
119 |
118 |
120 [self.view addSubview:splitRootViewController.view]; |
119 [self presentModalViewController:settingsViewController animated:YES]; |
121 [self presentModalViewController:splitRootViewController animated:YES]; |
|
122 */ |
|
123 break; |
120 break; |
124 case 3: |
121 case 3: |
125 debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
122 debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
126 UITextView *scroll = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)]; |
123 UITextView *scroll = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)]; |
127 scroll.text = debugStr; |
124 scroll.text = debugStr; |
155 |
152 |
156 |
153 |
157 -(void) viewDidUnload { |
154 -(void) viewDidUnload { |
158 self.versionLabel = nil; |
155 self.versionLabel = nil; |
159 gameConfigViewController = nil; |
156 gameConfigViewController = nil; |
160 splitRootViewController = nil; |
157 settingsViewController = nil; |
161 [super viewDidUnload]; |
158 [super viewDidUnload]; |
162 } |
159 } |
163 |
160 |
164 -(void) dealloc { |
161 -(void) dealloc { |
165 [versionLabel release]; |
162 [versionLabel release]; |
166 [splitRootViewController release]; |
163 [settingsViewController release]; |
167 [gameConfigViewController release]; |
164 [gameConfigViewController release]; |
168 [super dealloc]; |
165 [super dealloc]; |
169 } |
166 } |
170 |
167 |
171 @end |
168 @end |