每日一句 ( 20241222 )  

Rivers know this: there is no hurry. We shall get there some day.

河流知道這一點(diǎn):無需匆忙。我們終有一日會(huì)到達(dá)。———— A. A. Milne

swift3中提示框UIAlertController的使用

在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...