UIImagePickerController cameraViewTransform acts differently in iOS 4

后端 未结 4 1856
刺人心
刺人心 2021-01-01 00:37

I upgraded both my iPhone and SDK to iOS 4.0.1 and now my App doesn\'t run the same way it was running in iOS 3.x.

My App uses the UIImagePickerController with a cus

4条回答
  •  -上瘾入骨i
    2021-01-01 01:27

    I'm finding the new scale transform for the iPhone 4 to be ~1.25 (instead of ~1.12).

    I spent a few minutes trying to figure out where these magic numbers come from - I assume there's some sort of relationship between the screen resolution & the camera resolution, but I couldn't figure it out in a hurry...

    If someone does, please post an answer - I hate magic numbers.

    FYI the camera res of the iPhone 4 is 2592x1936, while the iPhone 3GS is 2048x1536.

提交回复
热议问题