UIImageView black on startup screen

I sometimes run into a very strange problem on the launch screen. I only use the xib file with UIImageView, but sometimes the image is just a black rectangle.

I tried to switch between .jpg and .png files, but this did not help, I also assigned it a different image property profile.

This happens on devices running iOS 9.

enter image description here

These are limitations for UIImageView. I deleted the image because it is a client logo.

enter image description here

enter image description here

+4
source share
2 answers

I have the same problem. I tried:

  • move the .png file to Images.xcassets. to fail.
  • Create a new version of LaunchFile.storyboard. to fail.
  • .png. , Build & ( Run ) , . ( Xcode )
  • LaunchFile.storyboard . LaunchFile , .

, , ( , 100 , ).

- .png. .png , File > Save for web (Command + Option + Shift + S), , , .png . , , .

, .png .

+4

, . , , .

+3

Source: https://habr.com/ru/post/1618278/


All Articles