Reputation: 1477
I am creating an UIImagePickerController
for a full screen camera using a custom OverLayView but when ever I rotate my device I get an error saying "CGAffineTransformInvert: singular matrix.
" As a reference to how I am going about doing this I am following this tutorial: http://blog.blackwhale.at/?p=443
Upvotes: 4
Views: 823
Reputation:
Here is the code to rotate the overlay view of camera
cameraOverlayView.transform = CGAffineTransformMakeRotation(-3.141592/2);
and it's for scale transform:
cameraController.cameraViewTransform=CGAffineTransformScale(cameraController.cameraViewTransform, 1, 1.25);
Upvotes: 3