Marino Faggiana hace 8 años
padre
commit
cf1c8b7449
Se han modificado 1 ficheros con 13 adiciones y 2 borrados
  1. 13 2
      iOSClient/Settings/CCSettings.m

+ 13 - 2
iOSClient/Settings/CCSettings.m

@@ -542,8 +542,19 @@
                 [self reloadForm];
             }]];
             
-            [self presentViewController:alertController animated:YES completion:nil];
-
+            //if iPhone
+            if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
+                
+                [self presentViewController:alertController animated:YES completion:nil];
+            }
+            //if iPad
+            else {
+                
+                // Change Rect to position Popover
+                UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:alertController];
+                [popup presentPopoverFromRect:[self.tableView rectForRowAtIndexPath:[self.form indexPathOfFormRow:rowDescriptor]] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
+            }
+            
         } else {
             
             [CCUtility setFavoriteOffline:false];