7 ms·
I'm a little confused by the "Main action" and "Cancel" buttons. Shouldn't the Cancel button have the red text and not the other way around?
by jivid 13y ago
I'm a little confused by the "Main action" and "Cancel" buttons. Shouldn't the Cancel button have the red text and not the other way around?
- sailer 13y agoNo worries. I've doubled check on the apple UIKit - https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UIActionSheet.html#//apple_ref/doc/uid/TP40012857-UIActionSheet-SW1 https://developer.apple.com/library/ios/documentation/UserEx...
- mh- 13y ago'Should' is a matter of debate.. but this does match actual iOS 7.
- Someone 13y agoYou should only show a dialog before an action that cannot be undone. So, the "not Cancel" button in a dialog should always be destructive, and "Cancel" should always be the safe choice. Also, Red is the universal color for danger. That's why the action button is red.