问题描述
|
如何将UIImageView更改为landscapemode?
我有一个UIImageview.whe,它仍然以potrait模式旋转。
码:
- (BOOL)shouldAutorotatetoInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
解决方法
根据持有视图的类/控制器及其继承的类,很可能将其中之一设置为仅允许纵向旋转。
请检查此内容,然后向我们提供更多信息,以便在我所说的情况不是这样的情况下更好地建议您。
,如果只希望您的应用以横向运行,并且不允许纵向运行,请更新应用的info.plist中的“支持的界面方向”列表,以仅包含横向。