Interface orientation issue with photo gallery in iOS - 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?

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

Related

iPhone camera landscape orientation issue

I have scenario in which the camera is to be forced to be in landscape when ever you want click . I tried various things but i am not able to make it landscape . In one forum i even read that doing so may lead to app rejection . Is it so? if not can someone give me the solution for the same ?
Which model of the iphone are you using? Do you by chance have the rotation lock enabled? Is this a third party app or the official iphone camera app? sometimes if you use a third party app, they don't always work correctly with rotation settings.
Hey i found one solution for the same through which we can give an impression to user that camera is presented in landscape mode and user will take image in landscape . We need to add a custom view (a bar giving an impression that its a landscape view) on the camera with button having click functionality hiding the default controllers of camera . See attached screenshot . Output of solution i found

iPad Take Photo changes orientation

I am developing a PhoneGap app for iPads with a landscape-only orientation and I have run into a problem that I can't seem to figure out. In the app is a feature that allows you to take a photo of a customer. If you take and crop the photo in landscape mode, it looks like it tries to change the orientation of the app to portrait (I get a black bar on the right side). However, if you take and crop the photo in portrait mode, the app stays in landscape. You can even take the photo in landscape and crop it in portrait and the app will maintain its landscape orientation. I now assume that the problem lies in whatever happens when I click "Use" in the crop screen (Move and Scale screen). Does anyone know what could be causing this or how to fix it? Thanks.

Can I take a picture without showing the view finder on BlackBerry?

Is it possible to take a picture programmatically from the device camera without showing the view finder on an application screen in BlackBerry?
No, you must start the camera preview and display it on a Screen before a photo can be taken programmatically.

iBooks Author widgets on portrait mode

I am having problems on a book I am writing on iBooks Author using the Contemporary template. I did add an Image Gallery widget in landscape orientation, but it doesn't appear on portrait orientation.
Anyone knows what happens on portrait that it doesn't show the widget?
I found that you can only view the Gallery Widget in portrait mode if it is on a "page" not a "chapter" or "section" screen. It behaves differently though, it shows up smaller then goes fullscreen when you click on it.
I too had this same problem and I think that if the gallery widget is anchored to text, then it shows up in portrait mode.
It appears that widgets show only in the thumbnail track in Portrait mode. If, like me, you have hidden the thumbnail track (because you dont want to waste the real estate) you don't see the widget in Portrait mode.
Almost all widgets do not show up in portrait mode if you have them set to floating, check for that first.

UIImagePickerController With Camera Option in landscape mode in iphone SDK

I'm going to use UIImagePickerController with source as a camera. by default when i'm capturing the image m able to take the picture in portrait mode. here the problem is that i'm not able to display the same view in landscape mode.
Is there any other way to open the camera in Landscape mode?
Thanks in advance.
First of all there is no way to open camera in Landscape mode So we have to customize views as per our need.
You have to add rotation transformation to picture which will match to landscape view. You can hard code it as ,
Blockquote
CGAffineTransformRotate(CGAffineTransformIdentity, 117.81)"
Blockquote

Resources