UIImagePickerController cameraViewTransform acts differently in iOS 4

后端 未结 4 1878
刺人心
刺人心 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条回答
  •  难免孤独
    2021-01-01 01:28

    CGAffineTransformMakeTranslation will not work directly on cameraViewTransform. So, use CGAffineTransformScale to apply CGAffineTransformMakeTranslation.

    float yOffset = 44.0;
    CGAffineTransform translate = CGAffineTransformMakeTranslation(0.0, yOffset);
    self.cameraFeed.cameraViewTransform = CGAffineTransformScale(translate, 1, 1);
    

提交回复
热议问题