iOS9 中 alertView 的使用


"UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead"

這是在UIAlertView蘋果官方文檔中話,意思是:UIAlertView已經廢棄了,使用UIAlertController代替,並且傳遞UIAlertControllerStyleAlert參數。

在Xcode中輸入UIAlertView的前幾個字母時,已經不再提示,並且UIAlertView被划上紅線

如圖,但是還是可以使用,下面就使用UIAlertController來實現


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM