project_files/HedgewarsMobile/Classes/SettingsBaseViewController.m
changeset 6672 4f728ccdd06b
parent 6319 b57a37a94ad3
child 6700 e04da46ee43c
equal deleted inserted replaced
6671:5532d5f6285c 6672:4f728ccdd06b
   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 }