问题描述
|
- (BOOL)shouldAutorotatetoInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
我使用此代码片段进行旋转。我在该视图中使用图像视图和滚动视图。如何旋转该视图...?
提前致谢
解决方法
第一组
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return YES; }`
在mainView控制器中,然后是其他控制器的工作
, 在info.plist中,在UISupportedInterfaceOrientations中添加所有四个方向,并将所有四个方向设置为true。