3

My app stopped working correctly with iOS 4.3. It uses a custom camera view overlay for the UIImagePickerController. And I want to adjust the size and origon of the camera preview view by set cameraViewTransform as CGAffineTransformMakeTranslation and CGAffineTransformScale, but the CGAffineTransformMakeTranslation seems to have no effect, However scale and rotate transforms work as expected. And the preview View is always in the center of the screen, I want to make the change.

I had try method as below, but does not work too.

Scaled live iPhone Camera view in center, "CGAffineTransformTranslate" not working

Any suggestion? Thanks.

Community
  • 1
  • 1
DarkTemple
  • 31
  • 2
  • picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, 0.5, 0.5); picker.cameraViewTransform = CGAffineTransformTranslate(picker.cameraViewTransform, -100, -100); – DarkTemple Sep 04 '11 at 08:27

2 Answers2

1

Yes, I am seeing this on my 4.3 iPhone, but not on the ones with 4.2 and older. So it is definitely a bug.

Sten
  • 3,624
  • 1
  • 27
  • 26
1

I ended up just moving the picker frame to get this to work. check out my answer here: https://stackoverflow.com/a/9458688/791661

Community
  • 1
  • 1
pir800
  • 1,012
  • 13
  • 16