Supporting All Orientations in iPad App

May 18, 2010 § 5 Comments

One of the most popular disapproval or rejection reasons for iPad app is your app doesn’t support all orientations.

iPad requires 4 additional Default images:

  • Default-LandscapeRight.png
  • Default-PortraitUpsideDown.png
  • Default-LandscapeLeft.png
  • Default-Portrait.png

iPad’s screen size is 1024 x 768 pixels. 20 pixel is the status bar.

  • 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.

Again it recommends you to put these Default images at the Project root. If you don’t give precise image dimensions, your iPad app will get confused and will not display those default images.

However it would not do the trick even you place all the default images at the project root. As it is, iPad would display one Default image regardless of iPad orientation. Adding conditional codes in Objective-C won’t show any effect.

// This won’t do much
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return YES;

Apple documentation didn’t list it on their documentation even it is a must requirement for approving iPad app.

Apparently you would have to add a new field “UISupportedInterfaceOrientations” to info.plist.

UISupportedInterfaceOrientations must be defined as Array in Type. Add the following items into the array

  • UIInterfaceOrientationPortrait
  • UIInterfaceOrientationPortraitUpsideDown
  • UIInterfaceOrientationLandscapeLeft
  • UIInterfaceOrientationLandscapeRight

Apple SDK templates should have included these expected settings on iPhone OS 3.2 but it didn’t. Apple expects developers to repeat these steps in building every new iPad app.


iPhone SDK Error: A valid provisioning profile for this executable was not found

May 18, 2010 § Leave a comment

Xcode Organizer

A valid provisioning profile for this executable was not found.

Things get more complicated when Apple introduces iPad. If you use your iPhone App to brunch out to make another iPad app, the chances are you would have multiple “Resources” folders, .plist files, and targets.

Even if you follow the proper instruction on iPhone Developer Portal in creating and installing certificates and provisioning profiles and selecting the matching CodeSign provisioning profile in Build Tag under Get Info, you will run into this error.

Be sure you go to Targets folder and select the iPad target. Right click to select “Get Info”. Select the matching provisioning profile to remove this error.

Where Am I?

You are currently browsing the iPad category at Web Builders.