Arsynth
Arsynth

Reputation: 793

iOS application's orientation remember?

I have several view controllers, which maintains only landscape mode and one view controller with all interface orientations(for example, slideshow). "Splash screen" can only in landscape mode. After "slideshow" is in portrait mode and I fully terminate application(from task bar too), application starts a "splash screen"(what should in landscape mode) unexpectly in portrait. But why it happens, if splash screen is actually not rotates in portrait if device rotated? And how to resolve this problem? Thanks.

Upvotes: 0

Views: 132

Answers (1)

Gypsa
Gypsa

Reputation: 11314

In your SplashScreenViewController write:-

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);

}

Upvotes: 2

Related Questions