天天看點

iOS開發技巧 - 使用Alerts和Action Sheets顯示彈出框

解決方案:

(Swift)

使用UIAlertController類

(Objective-C)

使用UIAlertView類

代碼: