Contents

setShowsCancelButton(_:animated:)

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

Declaration

func setShowsCancelButton(_ showsCancelButton: Bool, animated: Bool)

Parameters

  • showsCancelButton:

    True to display the cancel button, otherwise False.

  • animated:

    True to use animation to change the display state of the cancel button, otherwise False.

Discussion

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

See Also

Configuring the search interface