Invalid PNG Image file: iDOT doesn't point to valid IDAT chunk

前端 未结 6 1900
北海茫月
北海茫月 2021-02-13 22:22

I have some HTML content pages in an app and I\'m using a UIWebView to display them. Some of these pages have a PNG image in them that is generating the following message in th

6条回答
  •  感动是毒
    2021-02-13 22:54

    Strangely, I had the exact same issue just about an hour ago. I didn't find a particular reason for why it was failing, but I think I was able to "fix" the image to make it display properly and not throw an error.

    I just opened it in Preview and exported a new PNG file from the source. Once I replaced the bad image in my project file with the newly created one, I cleaned, compiled and it worked as expected.

    Hope it's as easy as that for you...

提交回复
热议问题