【问题标题】:Upsite down doesn‘t workUpsite down 不起作用
【发布时间】:2015-08-11 16:38:57
【问题描述】:

我有一个带有四个视图控制器和四个 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

【问题讨论】:

  • 您的意思是在您的项目设置中启用了它,对吧?确保您的设备也未锁定方向。
  • 可以,但还是不行。

标签: ios view controller


【解决方案1】:

在您的项目/部署信息中,您需要标记四个选项:

-纵向 -倒挂 -横向左 -风景右

【讨论】:

    猜你喜欢
    • 2020-11-28
    • 1970-01-01
    • 2011-10-21
    • 2019-08-03
    • 2018-04-01
    • 1970-01-01
    • 2011-04-23
    • 1970-01-01
    相关资源
    最近更新 更多