How to remove confirmation on iPad in accordance with user interface guidelines

After reading the iOS Human Interface Guides , there seems to be no right way to confirm a user before uninstalling. The Guide contains a list of 3 things related to UIAlertView and UIActionSheet:

  • Do not use the warning view to confirm a user-initiated action.
  • Do not enable the cancel button on the action sheet (on iPad).
  • The action sheet must have at least two buttons.

So ... I need the user to confirm that they want to delete something. The only option to submit them is to actually delete the thing or do nothing (cancel). They can do nothing by clicking outside the action sheet that rejects it. But this leaves only 1 button for the action sheet. How should you make a deletion confirmation?

There is a modal / animated version of the action sheet on the iPhone that is great for this purpose. But the iPad is completely changing the way it displays action sheets. The documentation says that you can still present the action plan on the iPad as modal by presenting it with animation; but I found that it looks and acts the same way, whether YES or NO is animated.

+3
source share
2

" " UIActionSheet , , , , . :

UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:nil 
                                                    delegate:self 
                                           cancelButtonTitle:nil 
                                      destructiveButtonTitle:@"Cancel downloads" 
                                           otherButtonTitles:nil];
[action showFromRect:self.cancel.frame inView:self animated:NO];
[action release];

self.cancel - UIButton UIToolbar. , "" "". Apple , ...

, !

+1

UIActionSheet . UIActionSheet - ( ) , , . , UIActionSheet, . , ( "" , ).

UIActionSheet:

iPad, . , popover . popover , . . , popover , . . iOS .

actionSheet: clickedButtonAtIndex:, UIActionSheet -1. 0.

, , Apple . , , HIG , , , .

+1

Source: https://habr.com/ru/post/1783486/


All Articles