【发布时间】:2013-03-27 16:22:38
【问题描述】:
我使用情节提要创建了 UIViewController 并将其链接到 UIViewController 类。
我想让我的 UIViewController 只支持纵向,我尝试了打击代码,但它似乎不起作用。我的 UIViewController 还在旋转。
我需要更改情节提要中的任何属性吗?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return ((interfaceOrientation == UIInterfaceOrientationPortrait) || (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown));
}
【问题讨论】:
标签: ios objective-c xcode ios6 xcode4.6