UIAlertViewPredicate Delegate

Definition

A delegate for use with ShouldEnableFirstOtherButton.

public delegate bool UIAlertViewPredicate(UIAlertView alertView);
type UIAlertViewPredicate = delegate of UIAlertView -> bool

Parameters

alertView
UIAlertView

The UIAlertView with which this delegate is associated.

Return Value

true if the first non-cancel button in the alert should be enabled.

Remarks

The application developer can use this delegate to programmatically decide if the first button that is not at the "cancel button" index (see CancelButtonIndex) should be enabled.

Applies to

See also