B-Man
B-Man

Reputation: 2249

ios: images sometimes not loading from bundle

Sometimes (RARELY but still a problem), users have reported missing images in my app. The images load fine on 3 iPhones I use for testing and on most users devices so I cannot imagine the problem is in the code.

See screenshot here: the avatar/profile image is missing, and two icons in the big buttons (loaded via IB from bundle) are also missing. The screenshot is from one of the users. My tests in both Test and Prod are showing the images just fine. Anybody got an idea?

Screenshot from user

Upvotes: 0

Views: 955

Answers (1)

Anton Holub
Anton Holub

Reputation: 468

Probably problem can be in missing resources for retina or non-retina displays. E.g. You have avatar for non-retina resolution only and you have incorrect naming - then on retina there will be no image.

Also make sure that you have corresponding images naming: If you are not using image assets, for each image you should have next resources non-retina resolution: my_pic_name.png retina resolution: [email protected]

If you are using image assets - make sure that "1x" and 2x" cells for expected resource name a filled.

Upvotes: 1

Related Questions