3

I am using phonegap in my application.

using camera plugin for capture and select image

I am facing orientation issue in different cases:

When allowEdit : true and iphone orientation is open, then it works fine

When allowEdit : true and iphone orientation is locked, then it work fine only when click photo in portrait orientation, in all other orientation image rotates

When allowEdit : false, then it work fine only when click photo in landscape left orientation, in all other orientation image rotates

Same issue with video too.

Amit Battan
  • 2,968
  • 2
  • 32
  • 68
  • everything is working ... but main issue is that image rotates 90 degree, 180 degree, 270 degree according to orientation.. – Amit Battan Dec 30 '11 at 10:04
  • I'm sorry but I still don't exactly understand what the issue is. Does this occur in the normal iOS photo capture mode? AFAIK you can't really control the behavior of that view, so I would guess that this isn't a bug but intended behavior? – Louis B. Dec 30 '11 at 10:40
  • I have mention 3 case in the post.......... 1. allowEdit : true and iphone orientation is open >>>>>>>>>>>>> 2. allowEdit : true and iphone orientation is locked >>>>>>>>>>>>>>>>>>> 3. allowEdit : false – Amit Battan Dec 30 '11 at 10:49

2 Answers2

4

Solved for image
passing argument correctOrientation: true from phonegap

But still have issue in Video.. Video rotate to 90 degree angle

Amit Battan
  • 2,968
  • 2
  • 32
  • 68
0

Try this inside the webViewDidFinishLoad function of AppDelegate.m.

[UIView setAnimationsEnabled:NO];
Peter DeWeese
  • 18,141
  • 8
  • 79
  • 101
Anand
  • 3,346
  • 9
  • 35
  • 54