UIActionSheet instances do not display correctly on iPads running iOS7. For some reason, they display a cancel button and leave the last button. The same code works fine on iOS8.
You expected the cancel button to be ignored, given that tapping elsewhere on the screen will close the action sheet. Does anyone know why this is so?
Exactly the same code is used in both cases:
let mapOptions = UIActionSheet(title: "Select map type", delegate: self, cancelButtonTitle: "Cancel", destructiveButtonTitle: nil, otherButtonTitles: "Standard", "Hybrid", "Satellite")
mapOptions.showFromBarButtonItem(self.mapTypeButton, animated: true)

source
share