Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-26-2011, 07:11 AM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 4
tarun_sharma is on a distinguished road
Question Retina display support for rumtime downloaded images

For iPhone4 retina display support i know that for images that are bundled with app we can use a extra set of larger images and have naming conventions as "@2X". But in my application i am showing a product list for which i am downloading images at run time from server and showing it. Now how do i support retina display support for these images.
May be i can explain it better with an example.
Images at server size 60X60
UIImageView size in app 60X60.

This works perfect on iPhone3 but when run in iPhone4 images get blurry.
So now should i create one more set of 120X120 images and use them for iPhone4? Or I keep 120X120 images both for iPhone3 and iPhone4? In the later case would iOS automatically downsize these images to fit perfectly?
I have set my UIImageView contentMode property to UIViewContentModeScaleAspectFit.

Thanks,
Tarun Sharma.
tarun_sharma is offline   Reply With Quote
Old 05-26-2011, 07:14 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Depends on what it they will look like on older phones when iOS sizes them down by half. It's a bit more work but I'd include a second set of images and detect the screen scale, based on that I'd request either low or high res version of the image from the server.
baja_yu is offline   Reply With Quote
Old 05-26-2011, 07:28 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 864
nobre84 is on a distinguished road
Default

Using hi-res images all the way would be the easiest, if its not too many images shown at once, and if their sizes are not too big (120x120 wouldn't be a problem)
nobre84 is offline   Reply With Quote
Reply

Bookmarks

Tags
images, retina, retina display, rumtime download

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 344
6 members and 338 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:11 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0