-1
我有一个拥有多个ViewController的程序。iOS屏幕旋转
在一些我需要只有肖像模式,但在其他人我只需要景观模式。
当我来自纵向viewController时,系统应该自动将新的viewController置于横向。
我该怎么做?
我有一个拥有多个ViewController的程序。iOS屏幕旋转
在一些我需要只有肖像模式,但在其他人我只需要景观模式。
当我来自纵向viewController时,系统应该自动将新的viewController置于横向。
我该怎么做?
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeLeft;
}
这可能有助于
我用 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)取向 - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation但这些都不是解雇?我找不到原因。 – ButterBeast 2013-03-15 16:48:13