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, Jul 5, 2012 at 5:53 AM, Phil Cockfield <[email protected]> wrote: > 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 doing is checking whether the device > has a retina screen, and if so I'm appending the @2x onto the path. > > *My problem is*: With the appended @2x path, FromFile return *null* - > even when the file exists. > > Question: > > - Is the system rejecting the path with @2x in it perhaps? > - Is there some other way I'm supposed to pull the retina images, or > paths....perhaps automatically. > > Thanks! > > -- > *Phil *Cockfield > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
