Rivers know this: there is no hurry. We shall get there some day.
河流知道這一點:無需匆忙。我們終有一日會到達。———— A. A. Milne
在xcode8 swift3中已經(jīng)已經(jīng)棄用了UIAlertView控件,統(tǒng)一使用UIAlertController代替,以下是UIAlertController的簡單示例。IBAction func myBtn(_ sender: Any) { let alertController = UIAlertController(title: "Demo", message: "確定還是取消", preferredStyle: .actionSheet) //定義取消按鈕及事件 let cancelAction = UIAlertAction(title: "取消", style: .cancel, handler...