9
Написання обробника для UIAlertAction
Я представляю користувачеві a, UIAlertViewі я не можу зрозуміти, як написати обробник. Це моя спроба: let alert = UIAlertController(title: "Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "Okay", style: UIAlertActionStyle.Default, handler: {self in println("Foo")}) Я отримую купу питань у Xcode. У документації йдеться convenience init(title title: String!, style style: UIAlertActionStyle, handler handler: …