Alert Views

Alert views allow you to make modal alert, confirmation and prompt dialogs. You can learn more about alert views here.

Title
Message
Button
The title, if present, adds 21pt.
The message, if present, adds 21pt.
Title
Message
Button
A single text or password field is 30pt tall with 3pt margin above and 15pt margin below.
Title
A longer message wraps to a second line. Or third. Or fourth. Or…
Button
Each additional line adds 19pt to the message height.
Title
Message
Button
Text and password fields together are 59pt tall and have placeholder text "Login" and "Password".
Title
Message
Cancel
OK
Two buttons are placed side-by-side. The primary button is on the right.
The cancel button, if present, is always on the left.
Title
Message
Button 1
Button 2
Cancel
Three or more buttons are stacked vertically. The primary button is on the bottom.
The cancel button, if present, is always on the bottom.
Title
Message
Longer text shrinks to fit the button
Buttons are 44pt tall with 15pt horizontal padding.
Alert views are displayed above a 40% opaque mask. A mask is included with each alert view on this page, but if you need another, here it is.