I ran my app on iPhone5s iOS7. The indexes of buttons are wrong, cancleButton becomes the first button. I am confused that when I tap the background, it opens the album. I don't know why. So strange.
This is my code.
func actionsheetInIOS8Early() {
let actionSheet = UIActionSheet(title: nil, delegate: self, cancelButtonTitle: "cancle", destructiveButtonTitle: nil)
actionSheet.addButtonWithTitle("album")
if UIImagePickerController.isSourceTypeAvailable( UIImagePickerControllerSourceType.Camera) {
actionSheet.addButtonWithTitle("camera")
}
actionSheet.showInView(self.view)
}