3
votes

I use this code:

[image setImage:[UIImage imageNamed:@"[email protected]"]];

and it work on ios 4.3, but on ios 5.0 I don't see my image.

Anybody know which kind this problem?

2

2 Answers

6
votes

You normally don't need to include the @2x in the name - iOS should automatically pick the right filename (some.png or [email protected]) depending on the scale of the screen. Have you tried this:

[image setImage:[UIImage imageNamed:@"some.png"]];

instead?

1
votes

As Martin (the other :) ) said, you should'nt add @2x if you have both yourImage.png and [email protected].

I also listed many reasons of problems that could occurs with imageNamed here