Stan92
Stan92

Reputation: 453

UISplitView Orientation problem

I use a TabBarController that contains 1 splitViewController and a standard viewController. Everything works fine except when I rotate the device.

On the SplitViewController when I rotate the device from Portrait to Landscape and Landscape to Portrait everything is ok. When I move to the tabBar that contains the viewController, when I rotate the device in any direction, everything is also ok.

But if the last orientation of the splitView controller was landscape and from the ViewController I rotate the device to Portrait, when I go back to the SplitView Tab, I lost the popover button.. Everything is displayed well if I rotate the device.

Any help?

Upvotes: 0

Views: 377

Answers (1)

Mustafa
Mustafa

Reputation: 20564

This is a default problem for cases when you use UISplitViewController inside UITabBarController. The catch is, the device rotation notifications are not received by the UISplitViewController, if it's inactive. You can find more details here:

UISplitViewController in a TabBar ( UITabBarController )?

Upvotes: 1

Related Questions