Splash image (default) questions

My app runs in landscape mode and auto rotates fine with the device orientation.

I have an image ‘Deafult-Landscape.png’ which seems to be used for the splash image. However, depending on the orientation of the device this will appear upside down. Is there a way to make it appear the correct way?

Also, I am building for iPad and touch, so how do I get it to use a different default image for the iPad dimensions?

This is my current build file.

settings =  
{  
 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeRight","landscapeLeft"  
 },  
 },  
   
 iphone =  
 {  
 plist =  
 {  
 UIStatusBarHidden=true,  
 CFBundleIconFile = "Icon.png",  
 CFBundleIconFiles = {  
 "Icon.png" ,   
 "Icon@2x.png" ,   
 "Icon-72.png" ,   
 },  
 },  
  
 }  
}  
  

Many thanks,

Gareth [import]uid: 51494 topic_id: 22702 reply_id: 322702[/import]

Hi Gareth,

I had the same problem, the only way that you can correct that is simple… rotate your image to the right orientation… the default screen is not affected by those parameters, so, you just have to adjust your image and voila!!!

Regards,
Jose

[import]uid: 84893 topic_id: 22702 reply_id: 90628[/import]

Hi Jose,

I’ll try that, thanks.

Do you know how I use a different default image for iPad?

cheers,

Gareth [import]uid: 51494 topic_id: 22702 reply_id: 90646[/import]

http://developer.anscamobile.com/content/configuring-projects#Orientation_Support_iOS [import]uid: 10389 topic_id: 22702 reply_id: 90651[/import]

Thanks Waulok, I’d missed that in the docs. (Or to be more correct read it and didn’t click what it was saying at the time.)

Jose, I’ve rotated my splash image, Default.png but it still does not rotate correctly and can appear upside down depending on the device orientation. (It does now display correctly in landscape but can be ‘landscape upside down’, if that makes sense.) [import]uid: 51494 topic_id: 22702 reply_id: 90882[/import]

Did anyone find a solution to this?

I too am having problems with landscape orientated default png files. I see the same file regardless of the way I’m holding the iPad. Once the app launches, it’s fine - it’s just an issue with the default png.

I have tried adding Default-LandscapeLeft.png, Default-LandscapeRight.png both in. I’ve also tried just using Default-Landscape.png but nothing works. If I hold the iPad one way up I see the image fine. The other way up, I see it upside down. And I’ve definitely rotated my alternate image by 180 degrees when using both left and right images.

No idea what to try now - have scoured the forums but this is the only thread where anyone seemed to be talking about the same issue.

This is the orientation section of my build.settings file:

orientation = { default = "landscapeLeft", supported = { "landscapeLeft", "landscapeRight", }, },

Any ideas?

Thanks,

Ian [import]uid: 123492 topic_id: 22702 reply_id: 107475[/import]

@Ian:

Thanks for asking, I was wondering that myself! Did not try it yet but are you saying the link did not help? See below the important part.

Thanks.

Mo
--------------------- from the link above ----------

"…If you are writing an iPad app that supports multiple orientations, you should also provide a splash screen for each of the orientations, or the App Store reviewers may reject your app. The iPad supports the following naming conventions for orientation-specific splash screen files:

Default-Portrait.png
Default-PortraitUpsideDown.png
Default-Landscape.png
Default-LandscapeLeft.png
Default-LandscapeRight.png
Note that the “Portrait” and “Landscape” splash screens in the list above will automatically handle two types of orientation each, unless you decide to provide more specialized files, such as “LandscapeLeft”. Also, all splash screen graphics provided should be internally upright – one common misunderstanding is that the “PortraitUpsideDown” graphic should actually be created upside down, which is incorrect…" [import]uid: 100814 topic_id: 22702 reply_id: 107511[/import]

Hi Mo,

Thanks for coming back on that. I’ve reread all the documentation, and the only thing I had incorrect as far as I can see is that I’d rotated the actual splash screen for the my landscape left by 180 degrees, which according to the above I’m not meant to do.

So, I turned that back so the left and right are the same image just copied and renamed, and it now works fine on iPad but on iPhone I still have the same problem. In landscape right my default.png image works correctly but if I rotate the iPhone by 180 degrees, the default image is upside down.

If anyone has any ideas I would really appreciate it.

Thanks,

Ian

[import]uid: 123492 topic_id: 22702 reply_id: 107862[/import]