UIImage: crash imageNamed

I have truble when using the [UIImage imageNamed:] method. It seems that the crash occurred when the application was launched from a dead state and received a resource image. All my images are stored in a package and without problems with the background stream. The following is the alarm log

Subject: Crashed: com.apple.main-thread 19 UIKit 0x186739714 + [UIImage imageNamed: inBundle: compatibleWithTraitCollection:] + 380 20 UIKit 0x18658cc8c + [UIImage imageNamed:] + 124

This happens on UIImage * image = [UIImage imageNamed: @ "abc.png"];

+5
source share

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


All Articles