简体   繁体   English

当应用程序只有一个方向时如何旋转UIImage的方向

[英]How to rotate orientation of UIImage when application have only one orientation

I have a Tabbar based application in iOS and it is only portrait orientation enabled. 我在iOS中有一个基于Tabbar的应用程序,并且仅启用了纵向方向。 one of my controller presents a controller with only one photo and i have to enable all orientations for image. 我的一个控制器提出了一个只有一张照片的控制器,我必须启用图像的所有方向。 can any one suggest me how should i do it? 有人可以建议我该怎么做吗?

I think, 我认为,

You have to enable all the Rotation in Project Summary. 您必须在“项目摘要”中启用所有“轮播”。

Then Restrict the All Views except Photo View. 然后限制所有视图(照片视图除外)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM