I'm trying to add an action sheet. From what I have read, UIActionSheet is depreciated in IOS 8, and one should use an Alert Controller instead. Here is my code snippet:
let optionMenu = UIAlertController(title: nil, message: nil, preferredStyle: .ActionSheet)
let takePhoto = UIAlertAction(title: "Take Photo", style: .Default, handler: { (alert: UIAlertAction) -> Void in
//action goes here
})
However. I am getting an error which reads "Could not find member 'Default'". From what I understand it there are 3 styles possible for UIAlertAction: Default, Cancel & Destructive. What am I doing wrong?
Many thanks :)