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:
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.
" " UIActionSheet , , , , . :
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 , ...
self.cancel
UIButton
UIToolbar
, !
UIActionSheet . UIActionSheet - ( ) , , . , UIActionSheet, . , ( "" , ).
UIActionSheet:
iPad, . , popover . popover , . . , popover , . . iOS .
actionSheet: clickedButtonAtIndex:, UIActionSheet -1. 0.
, , Apple . , , HIG , , , .
Source: https://habr.com/ru/post/1783486/More articles:row selection in vba task - vbaHow to combine case-insensitive value with XPath - xpathYoutube python: get thumbnail - pythonEdit script action in swf files - flashПочему флажок также содержит скрытый тег? - htmlВнедрение EAS для Zend Framework - phpPaper form for database - mysqlURL conventions for Maps on Windows Phone 7 - javascriptКак построить диаграмму Венна с 4 наборами - graphicsHow to make negate_unary work with any type? - c ++All Articles