UIAlertView: Where the cancel button should be?

Mr. Ming picture Mr. Ming · Jul 5, 2011 · Viewed 10.5k times · Source

The alertviews in the iOS:

  • Install App OTA: the cancel button is on the LEFT.
  • Delete an App: the cancel button is on the RIGHT.

Where the cancel button should be?

Answer

taskinoor picture taskinoor · Jul 5, 2011

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).