Ich versuche einfach Alarm in neuem Xcode Update 8.3.2 i ist vor Problem zu tun, während die Warnung Dialog präsentiert:Kann der Wert des Typs 'UIAlertAction' nicht in den erwarteten Argumenttyp 'UIViewController' konvertiert werden?
@IBAction func testButonAlert()
{
let alertAction = UIAlertAction(title : "Hi TEst" ,
style : UIAlertActionStyle.destructive,
handler : { (UIAlertActionStyle) -> Void in print("") })
self.present(alertAction , animated: false, completion: nil)
}
Fehler:
nicht Wert vom Typ 'UIAlertAction' umwandeln kann erwartete Argument Typ 'UIViewController'