views:

6640

answers:

2

hi i am create an universal application using iphone sdk3.2. i want to know for ipad and iphone do i need different default.png of different size.

+12  A: 

Yes. In iPhone/iPad development the default.png file is displayed by the device automatically so you don't have to program it which is really useful. I don't have it with me, but you need different pngs for the iPad which specific names. I googled up iPad and default png and got this info from the phunkwerks site:


iPad Launch Image Orientations

To deal with various orientation options, a new naming convention has been created for iPad launch images. The screen size of the iPad is 768×1024, notice in the dimensions that follow the height takes into account a 20 pixel status bar.

Filename Dimensions
Default-Portrait.png * 768w x 1004h
Default-PortraitUpsideDown.png 768w x 1004h
Default-Landscape.png ** 1024w x 748h
Default-LandscapeLeft.png 1024w x 748h
Default-LandscapeRight.png 1024w x 748h
Default.png Not recommended

  • If you have not specified a Default-PortraitUpsideDown.png file, this file will take precedence.

** If you have not specified a Default-LandscapeLet.png or Default-LandscapeRight.png image file, this file will take precedence.

Derek Clarkson
Thanks a lot for help
a111
Note that the Default.png is what's used for the iPhone when running the universal application on that device, so it needs to be your standard 320 x 480 or 320 x 460 image. The "not recommended" is only for iPad-only applications.
Brad Larson
Thanks! I'm now using a Default-Portrait.png with 768w x 1024h this size seems to work too.
powtac
A: 

Maybe I'm retarded but the image size is 1024x768 or 768x1024 respectively.. isn't it?

Mike Plant
on iPad image size for splash screens (or launch images as apple calls them) is 768 x 1004 pixels (portrait) or 1024 x 748 pixels (landscape) according to http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BuildTimeConfiguration/BuildTimeConfiguration.html
NesReqSej
The reason for the 20 pixel discrepancy is due to the height of the status bar at the top of the screen.
Joe