View controllers inside tab bar controller not auto-rotating
Posted
by Padawan
on Stack Overflow
See other posts from Stack Overflow
or by Padawan
Published on 2010-04-28T16:00:45Z
Indexed on
2010/04/28
16:03 UTC
Read the original article
Hit count: 363
In an iPad app, I have five regular view controllers (not navigation controllers or anything like that) inside a tab bar controller. The tab bar controller is just a plain UITabBarController declared in the app delegate.
All the view controllers return YES in the shouldAutorotateToInterfaceOrientation method.
On both the simulator and device, on rotation, the tab bar rotates properly but the currently selected view controller (call it A) does not.
If I switch to another view controller B and then back to A (without rotating the device again), A appears correctly rotated.
This happens with any of the five view controllers
Why doesn't the currently selected view controller rotate and how do I fix it?
Thanks.
© Stack Overflow or respective owner