-1
我正在拍攝來自url的圖像我的應用程序崩潰在if let pngImageData = UIImageJPEGRepresentation(img!, 0.25)
。僅適用於iOS 10.2.1的iPad Air 2。完美適用於iPad 3rd的iOS 9.3.5,iPad 2的iOS 9.3.5,iPhone 6的iOS 10.2.1以及iPhone 5s的iOS 10.2.1。應用程序正在崩潰`如果讓pngImageData = UIImageJPEGRepresentation(img !, 0.25)
顯示崩潰報告 –
刪除**從IMG – 2017-03-04 09:01:11
可能的複製![什麼是「致命的錯誤:意外發現零而展開的可選值」?意思是( http://stackoverflow.com/questions/32170456/what-does-fatal-error-unexpectedly-found-nil-while-unwrapping-an-optional-valu) – Hamish