我有一个带有四个视图控制器和四个ViewController.m / .h文件的选项卡式应用程序。虽然在"设置"。
中启用了倒置功能但仍然无法正常工作//
// FirstViewController.m
//
#import "FirstViewController.h"
@interface FirstViewController ()
@end
@implementation FirstViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (BOOL)shouldAutorotate {
return YES;
}
@end
答案 0 :(得分:0)
在您的项目/部署信息中,您需要标记以下四个选项:
-Portrait -上下翻转 -Landscape Left -Landscape Right