Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

"[Generic] Creating an image format with an unknown type is an error"

Get an error of "[Generic] Creating an image format with an unknown type is an error" after FilteredImageCell implemented.

2 Answers

It is almost impossible to answer questions in detail if neither context nor code is provided. I can only provide the following link which seems to related to your problem: http://stackoverflow.com/questions/39009889/xcode-8-creating-an-image-format-with-an-unknown-type-is-an-error

I thought it could be very hard for people to help me when i posted the question, but i really not sure which part of the project could cause the problem, that why I didn't include any codes, any suggestions? Thank you !

As the error suggests, it might be somewhere you create and/or assign an image to an UIImageView.

Actually, the app Pasan created which was accessible for downloading has this problem as well. But somehow if I follow the videos, the problem won't crash the app, but it wasn't solved either.

Got this error using Pasan's code of MediaPickerController, this error come from mediaPickerController(_ picker: MediaPickerController, didFinishPickingImage image: UIImage). There are many solutions on stackoverflow, no one works for me...