Search code examples
iosobjective-cuiinterfaceorientation

Interface orientation issue with photo gallery in iOS


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?


Solution

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

    But remember, it would affect your UIAlertView.