9
UIAlertAction에 대한 핸들러 작성
UIAlertView사용자 에게 a 를 제시하고 있는데 처리기를 작성하는 방법을 알 수 없습니다. 이것은 내 시도입니다. 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: ((UIAlertAction!) -> Void)!) …