How to set an image based on iphone platform in objective-c -


i'm moving application 3.x 4.x prepare app store , found need have 2 copies of custom pngs - question how can determine img show , when. example - how know show find.png vs find@2x.png

is "safe" or "correct" 4.x specific apis or iphone have way determine platform on @ runtime?

thank in advance

when use standard apis, phone handles grabbing @2x version when necessary. example if use [uiimage imagenamed:@"find.png"]; , run on iphone 4, load find@2x.png automatically.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -