Search code examples
objective-cuiimagensarray

NSArray filled with UIImages


I'm trying to add images to my UICollectionView

Filling it this way:

NSArray *imagesArray = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"star.png"], [UIImage imageNamed:@"ball.png"], nil];

Each image has 3 resolutions @1x.png @2x.png and @3x.png

But it appears that imagesArray contains @1x image for all devices.

How can I solve it? Thanks in advance :)


Solution

  • The problem was that Xcode cached @1x images. I cleaned up Build Folder and reinstalled my app.