简体   繁体   English

如何在Ipad App ..中更改TabBar和导航控制器的方向?

[英]how to change orientation of TabBar and Navigation Controller in Ipad App ..?

当我加载标签栏和导航栏时,标签栏和导航栏未与此对齐

make sure that in every single ViewController in your project there is a method like this: 确保在项目中的每个ViewController中都有这样的方法:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM