开发者

Translate does not work in UIImagePickerController.cameraViewTransform

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 cha开发者_运维知识库nge.

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

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

Any suggestion? Thanks.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜