Как я помню, вы не можете вращать контроллер SDK UITabBar. Вы должны создать свою собственную панель вкладок, наследовать ее от UITabBar и там вернуть YES в методе shouldAutoRotate.
#import <UIKit/UIKit.h>
@interface MainTabBarController : UITabBarController{
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
@end
это файл .h
#import "MainTabBarController.h"
@implementation MainTabBarController
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
@end
Вам просто нужно изменить класс панели вкладок с UITabBarController на MainTabBarController