-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