【发布时间】:2012-12-21 06:13:23
【问题描述】:
假设我在应用程序中有多个视图,但我必须在横向模式下只显示电子表格的一个视图如何取悦给我的任何建议。一件事是我在所有视图中都没有返回横向视图请任何人给我知道这对我来说是一种乐趣
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationLandscapeLeft);
}
【问题讨论】:
-
在需要的视图中保持这样的条件应该自动旋转
interfaceOrientation == UIInterfaceOrientationLandscapeLeft
标签: iphone objective-c ios ipad cocoa-touch