我正在更新只需要使用函数shouldAutorotateToInterfaceOrientation纵向查看2个视图的App。 该项目使用UINavigationController的,所以如果我想旋转合作,纵向到横向,我不得不执行本规范的所有类(共16):使用UINavigationController的设备方向
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return YES;
}
所以,现在的旋转工作,但所有的观点仅!如果我只将这些代码放在我需要的类别根本不工作的类上。
如何让旋转仅适用于两个视图?
什么是意见流? – 2011-05-23 15:06:26
xcode没有设备定位 - 它只是一个IDE。 – vikingosegundo 2011-05-23 15:21:55