Hi,
FromFile should automatically apply the @2x suffix. If you manually apply
@2x, I suspect iOS to believe the non-retina file is actually called that,
thus applying @2x again, which will result in an invalid path.
Are you certain that the file's Build Action is set to Content?
Mikkel
On Thu,
Hmm, did not notice Phil's reply before now.
I use FromFile in a lot of UI specific code and I don't have @2x written
anywhere. It all works automatically.
Mikkel
On Thu, Jul 5, 2012 at 1:26 PM, Robert Jordan robe...@gmx.net wrote:
On 05.07.2012 09:45, Mikkel Lønow wrote:
Hi,
FromFile
It doesn't?
I use FromFile everywhere. Always appears to use the @2x version
I suspect I need to double check my code :)
On Thu, Jul 5, 2012 at 12:26 PM, Robert Jordan robe...@gmx.net wrote:
On 05.07.2012 09:45, Mikkel Lønow wrote:
Hi,
FromFile should automatically apply the @2x
On 05.07.2012 13:37, Nic Wise wrote:
It doesn't?
I use FromFile everywhere. Always appears to use the @2x version
I suspect I need to double check my code :)
Oh, starting with iOS 4 it does apply the @2x suffix. I think *I* have
to simplify my code ;)
Robert
All the documentation states they FromFile does not automatically apply the
@2x. So unless there's a bug, you should be getting the non-retina images.
Bob
--
Sent from my iPhone
On Jul 5, 2012, at 7:37 AM, Nic Wise n...@fastchicken.co.nz wrote:
It doesn't?
I use FromFile everywhere.
Yeah - it's working for me too.
I was initially thrown off by all the documentation saying it didn't -
coupled with me being a dunce on including the files correctly as content
in the product folder.
But it works fine now with *FromFile*. Very convenient.
On Thu, Jul 5, 2012 at 4:39 AM,
What's the strategy for loading retina images via the *UIImage.FromFile*method?
The documentation leads me to believe that only *FromBundle* does the
automatic @2x file suffix checking - (however even with thatI can't
actually see the retina versions loading).
Anyhow - with *FromFile*, what I'm