UIImagePickerController With Camera Option in landscape mode in iphone SDK - ios

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

Related

Custom Overlay UIImagePickerController Landscape mode issue

I have a UIImagePickerController with custom overlay. When I open the camera in landscape orientation in iPhone, the camera view is not displayed properly. I don't want the camera view in landscape mode. I want the camera view only to be opened in portrait mode.
Can someone pls help me out on this?.
Thanks in advance.

Manage orientation landscape and portrait both in a app iPhone

According to my client's requirement I want to set Splash Screen orientation in landscape(right) then the orientation will come in portrait.. any idea how can I implement it?
Just rotate your splash image in an external editor so that is gets displayed in a landscape mode.
Just because you perceive it as landscape doesn't mean it's actually not "rotated portrait".
See your Splash Image will look like this:
Just rotate your image the way you want it to look like...
The iPhone only has a single splash screen, no matter which orientation it launches in. The iPad on the other hand will display a different splash screen image in portrait and in landscape mode.
If your iPhone interface supports both portrait and landscape then you must decide which way round you'd like to display that splash screen image. As Kanan says, design your landscape image (say in Photoshop), then rotate the canvas so that the image is portrait (but the content is still landscape).

UIImagePickerController bug Rotate

I use UIImagePickerController in my ViewController(Collection View).
When rotate Device I have some bugs following pictures.
1.Portrait Mode : it's OK.
2.Landscape Mode : it's OK.
3.Select Action Sheet : UIImagePickerController : it's OK.
4.Select Camera Roll : it's auto rotate to Portrait
5.Touch Cancel on Camera Roll : mainViewController auto rotate to Portrait
I want
1) when touch Camera Roll it's show on Landscape mode
2) after touch Cancel and back to mainView , mainView show Landscape
P.S. This Project can Landscape and Portrait, This Problem occur on Landscape ONLY.
Thank you and sorry about my English.
Please read the DOCUMENT it is clearly said that it supports only PORTRAIT MODE
IMPORTANT
The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified, with one exception. You can assign a custom view to the cameraOverlayView property and use that view to present additional information or manage the interactions between the camera interface and your code.
So when you go to photo library it will be in portrait mode and when selected a image or cancelled it will come back to whatever previous mode you had.

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?
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

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.

Resources