Creates a navigation alert.
- iOS 12.0–13.0Deprecated
An array of localized, displayable titles. The system selects the title that fits in the available display space.
An array of localized, displayable subtitles. The system selects the title that fits in the available display space.
An image set displayed in the navigation alert. The navigation alert doesn't support animated images. If you provide an animated image, the alert uses the first image in the animation sequence.
The primary action and its button.
An optional, secondary action with its button.
The amount of time, in seconds, that the alert is visible. Setting the duration to 0 displays the alert until dismissed by the user.
A newly initialized navigation alert.