iphoneiosipaduialertviewcancel-button

UIAlertView: Where the cancel button should be?


The alert views in iOS system:

Where the cancel button should be?


Solution

  • From Human Interface Guideline:

    In a two-button alert that proposes a potentially risky action, the button that cancels the action should be on the right (and light-colored).

    In a two-button alert that proposes a benign action that people are likely to want, the button that cancels the action should be on the left (and dark-colored).