Instance Method

setShowsCancelButton:animated:

Sets the display state of the cancel button optionally with animation.

Declaration

- (void)setShowsCancelButton:(BOOL)showsCancelButton animated:(BOOL)animated;

Parameters

showsCancelButton

YES to display the cancel button, otherwise NO.

animated

YES to use animation to change the display state of the cancel button, otherwise NO.

Discussion

Cancel buttons are not displayed for apps running on iPad, even when you specify YES for the showsCancelButton parameter

See Also

Button Configuration

showsBookmarkButton

A Boolean value indicating whether the bookmark button is displayed.

showsCancelButton

A Boolean value indicating whether the cancel button is displayed.

showsSearchResultsButton

A Boolean value indicating whether the search results button is displayed.

searchResultsButtonSelected

A Boolean value indicating whether the search results button is selected.