UIAlertViewPredicate UIAlertViewPredicate Delegate

Definition

A delegate for use with ShouldEnableFirstOtherButton.

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

Parameters

alertView
UIAlertView UIAlertView

The UIAlertView with which this delegate is associated.

Return Value

System.Boolean

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

Inheritance
UIAlertViewPredicateUIAlertViewPredicate

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