I have a issue ; I have used zxing library for my iPad application; it works fine to read the qr code.
But its reader in landscape mode rotates the live feed from the camera to 90 degrees right; I want it to be without rotation just like in portrait mode where there is no rotation.
in portrait mode , the video feed is not rotated;have a look
But in Landscapemodeleft , the video feed is rotated;have a look again

Zxinglibrary usesAVFoundationframework to show live camera layer. This layer(prevLayer) is added on theZXingWidgetController‘s view layer ininitCapturemethod. So whenever you rotate your camera this layer also rotate. To keep this layer in fixed position you will need to rotate it again by0, M_PI, -M_PI/2, M_PI/2inportrait, upsideDown, landscapeRight, landscapeLeftusing following rotation transform