project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 4362 8dae325dc625
parent 4115 222b8016c773
child 4476 4bf74e158f44
equal deleted inserted replaced
4360:6cdb427ef82c 4362:8dae325dc625
   109     UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleStr
   109     UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleStr
   110                                                              delegate:self
   110                                                              delegate:self
   111                                                     cancelButtonTitle:cancelStr
   111                                                     cancelButtonTitle:cancelStr
   112                                                destructiveButtonTitle:confirmStr
   112                                                destructiveButtonTitle:confirmStr
   113                                                     otherButtonTitles:nil];
   113                                                     otherButtonTitles:nil];
   114     [actionSheet showInView:self.view];
   114 
       
   115     if (IS_IPAD())
       
   116         [actionSheet showFromBarButtonItem:(UIBarButtonItem *)sender animated:YES];
       
   117     else
       
   118         [actionSheet showInView:self.view];
   115     [actionSheet release];
   119     [actionSheet release];
   116 }
   120 }
   117 
   121 
   118 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex {
   122 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex {
   119     if ([actionSheet cancelButtonIndex] != buttonIndex) {
   123     if ([actionSheet cancelButtonIndex] != buttonIndex) {