採摘像我跟隨此Apple Tutorial,我得到這個錯誤:從照片庫
Creating an image format with an unknown type is an error
,同時從圖片庫中選擇圖像。
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
let selectedImage = info[UIImagePickerControllerOriginalImage] as! UIImage
photoImageView.image = selectedImage
dismiss(animated: true, completion: nil)
}
的可能的複製[XCODE 8 - 創建具有未知類型的圖像格式是錯誤的(http://stackoverflow.com/questions/39009889/xcode-8 -create-an-image-format-with-an-unknown-type-an-an-error) –