为了让应用从竖屏模式切换为横屏模式,我们得完成三件事情:
// Returns a Boolean value indicating whether the view controller‘??s contents should auto rotate. In iOS 5 and earlier, the default return value was NO.
- (BOOL)shouldAutorotate {
return YES;
}
现在再点Run按钮,一切应该正常了。
原文:http://www.cnblogs.com/stevenwuzheng/p/5369601.html