xcode6 - Screen Size Issue For an Image in iOS -


i want display title page game. want use pre-rendered images. needs work iphones , ipads. far using these assets screenshot belowenter image description here

i have used these sizes: in 1x place image resolution of 320 x 480. in 2x place image resolution of 640 x 960. in retina 4 2x place image resolution of 640 x 1136. in 3x place image resolution of 1242 x 2207.

only iphone 4 , 5's show correctly. both 6 , 6plus wrong.

for ipad:

1x image of 760*1024 2x image of 1536*2048

only ipad 2 displays correct. air , retina wrong.

i have read through documentation can find both on here , searching hours on google. unsure simple thing must overlooking. trying not possible? testing on simulator , thinking issue that?

also may have misunderstanding under impression @3x iphone 6 , 6+. if not, @3x for?

for reason image sets in asset catalogs not include size iphone 6 or iphone 6+, when using full screen image may need handle manually via code.

what i'm doing (and it's not pretty works), include image set iphone 6 (i imagename_47), , 1 iphone 6+ (i call imagename_55). in code, detect screen size , swap image best size. you'll need @2x version _47 one, , @3x version _55 one.


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -