setShowsCancelButton(_:animated:)
Sets the display state of the cancel button optionally with animation.
Declaration
func setShowsCancelButton(_ showsCancelButton: Bool, animated: Bool)Parameters
Discussion
Cancel buttons are not displayed for apps running on iPad, even when you specify true for the showsCancelButton parameter