equal
deleted
inserted
replaced
137 -(void) dismissSplitView { |
137 -(void) dismissSplitView { |
138 [AudioManagerController playBackSound]; |
138 [AudioManagerController playBackSound]; |
139 [[[HedgewarsAppDelegate sharedAppDelegate] mainViewController] dismissModalViewControllerAnimated:YES]; |
139 [[[HedgewarsAppDelegate sharedAppDelegate] mainViewController] dismissModalViewControllerAnimated:YES]; |
140 } |
140 } |
141 |
141 |
|
142 -(void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { |
|
143 if (IS_IPAD() == NO) |
|
144 return; |
|
145 |
|
146 if (self.targetController != nil) { |
|
147 CGRect screenRect = [[UIScreen mainScreen] safeBounds]; |
|
148 self.view.frame = CGRectMake(0, 0, 320, screenRect.size.height); |
|
149 } |
|
150 } |
|
151 |
142 #pragma mark - |
152 #pragma mark - |
143 #pragma mark Table view data source |
153 #pragma mark Table view data source |
144 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
154 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
145 return 1; |
155 return 1; |
146 } |
156 } |