iPad App orientation changes background flashes white - ios

I am working in InDesign DPS to create an iPad book and have options for both portrait and landscape views. Everything is working correctly except when I change the orientation of the iPad between portrait and landscape there is a white background that "flashes" briefly in the non-content area at the bottom of the screen until the destination orientation fills the screen.
How do I eliminate that irritant?
Thanks.

Isn't it your window ?
Change it's background color to black in your didFinishLaunch... : self.window.backgroundColor = [UIColor blackColor];

Related

UITabBar overlaps the navigation bar when editing items in landscape mode

I'm currently developing an iOS application in which I need to use a tab bar. While testing it on a small device (iPhone 4s) I found that If I rotated the device into landscape mode the title is overlapping the title bar.
Before rotation :
After rotation :
Is there a way I can fix this ? I don't have acces to this view because it is managed by the UITabBar.

White bar at the bottom to the view

I have a background image on a view controller, it is shown as expected on the simulator, but on a real device, a white bar is shown at the bottom of the screen. On another view, with another background image, the white bar appears on the top of the screen. Any hint to detect the source of the issue? It doesn't happened on the simulator, it happens only on a real device, it is an iPhone 4 with iOS 7.

iOS Orientation Change with ECSlidingViewController

I have an app that is a single view: a UIWebView that gets pdfs loaded into it. The pdfs are loaded from an ECSlidingViewController.
For some reason, when the app goes from portrait to landscape, the WebView remains in the same position and there is a large dark area to the left of the screen.
Portrait:
Landscape:
I have tried a number of techniques, but they each have problems. For example I can't simply reload a landscape view when the orientation changes, the user will lose their place in the webview. Any ideas?

Manage orientation landscape and portrait both in a app iPhone

According to my client's requirement I want to set Splash Screen orientation in landscape(right) then the orientation will come in portrait.. any idea how can I implement it?
Just rotate your splash image in an external editor so that is gets displayed in a landscape mode.
Just because you perceive it as landscape doesn't mean it's actually not "rotated portrait".
See your Splash Image will look like this:
Just rotate your image the way you want it to look like...
The iPhone only has a single splash screen, no matter which orientation it launches in. The iPad on the other hand will display a different splash screen image in portrait and in landscape mode.
If your iPhone interface supports both portrait and landscape then you must decide which way round you'd like to display that splash screen image. As Kanan says, design your landscape image (say in Photoshop), then rotate the canvas so that the image is portrait (but the content is still landscape).

Background color iOS 6 for application in landscape mode

I have the following code in the viewWillAppear function:
CAGradientLayer *bgLayer = [BackgroundLayer yellowGradient];
[bgLayer setBounds:self.view.bounds];
[self.view.layer insertSublayer:bgLayer atIndex:0];
It works perfectly in portrait orientation. However, when the device goes into landscape mode, it produces a white (or default color) background down the side. I have seen other examples of WHY this occurs, but nothing on how to fix it.
What I’m seeing happening is the 1024 resolution on landscape (iPad) dropping to 1004, and I think it’s adjusting it to 0,20 on the x, y.
Has anyone else run into this issue and found how to fix it?
It’s because when you turn the screen sideways, your view, which has a certain background color, does not turn sideways. The view remains in portrait. So you have this portrait-oriented colored view that’s going from the new “top” of the iPad to way below off screen, and on the right side, the view isn’t wide enough to reach, so you just see the app’s default (white) background color.
You can:
apply a CGAffineTransformMakeRotation rotation to your self.view 90º, so that it now displays properly in your now-landscape application,
make your view big enough to cover the entire device, in both landscape and portrait,
make a view with the proper landscape dimensions, and add it when the iPad rotates, or
disable those allowed interface orientations in your Xcode main project file.
Link to CGAffineTransformRotation Demo Code on SO: How to use CGAffineTransformMakeRotation?

Resources