I am making an application in landscape, but I need to open the photo gallery in the image. The photo gallery only opens in the portrait mode. Is there any way that the application can be limited to stay in the landscape mode except only for the photo gallery? Or can the photo gallery be opened in landscape?

有帮助吗?

解决方案

Possibly, rotation of a view could help you. Have a look at CGAffineTransformMakeRotation.

But remember, it would affect your UIAlertView.

其他提示

It is not possible because it is restricted by the framework, it will always open in portrait mode

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top