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 09-15-2010, 01:40 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Bangalore, India
Posts: 16
gaurish.salunke is on a distinguished road
Default images have different sizes when app runs in iphone 3.0 and 4.0

Hi friends

I have this app which is created in iOS 4.0.I use custom button images in this app.It looks fine when I run it on iOS 4.0.But the button images look huge when I run it in iOS 3.x.

custom button images have different sizes when app runs in iphone 3.0 and 4.0

Can any one put some light on this.
__________________
Gaurish Salunke
Software Developer,
Wipro Technologies,
Bangalore, India.

Last edited by gaurish.salunke; 09-15-2010 at 01:43 AM.
gaurish.salunke is offline   Reply With Quote
Old 09-15-2010, 08:13 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 24
silverpie is on a distinguished road
Default

Quote:
Originally Posted by gaurish.salunke View Post
Hi friends

I have this app which is created in iOS 4.0.I use custom button images in this app.It looks fine when I run it on iOS 4.0.But the button images look huge when I run it in iOS 3.x.

custom button images have different sizes when app runs in iphone 3.0 and 4.0

Can any one put some light on this.
Two-step solution. First, rename the image you have by adding @2x before the dot (so pic.png becomes pic@2x.png). Then, make another image at half the pixel size of the first, and give it the original name. iOS 3 devices will use the new image, while iOS4 devices will see the @2x and use it instead.
silverpie is offline   Reply With Quote
Old 09-16-2010, 04:40 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Bangalore, India
Posts: 16
gaurish.salunke is on a distinguished road
Default

Thanks buddy.It works now.
__________________
Gaurish Salunke
Software Developer,
Wipro Technologies,
Bangalore, India.
gaurish.salunke is offline   Reply With Quote
Reply

Bookmarks

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: 323
19 members and 304 guests
2ndSegment, bignoggins, cayladv57, cgokey, dermotos, djohnson, Domele, guusleijsten, Hamad, heshiming, linkmx, markuschow, Objective Zero, pungs, Rudy, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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