1

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.

4

1 に答える 1

0

まず、ランドスケープ モードでカメラを開く方法がないため、必要に応じてビューをカスタマイズする必要があります。横向きのビューに一致する画像に回転変換を追加する必要があります。としてハードコーディングできます。

引用符

CGAffineTransformRotate(CGAffineTransformIdentity, 117.81)"

引用符

于 2011-11-17T12:52:53.960 に答える