Post

Replies

Boosts

Views

Activity

UIImagePickerController: Camera preview on iPhone 12 (Pro) at undefined position?
Using UIImagePickerController, on all devices except iPhone 12 and iPhone 12 Pro (and maybe devices that will become available in the future) the camera preview is aligned at the top of the screen. On the iPhone 12 and iPhone 12 Pro (and maybe other iPhone 12 variants), the preview is no longer aligned at the top, but at a position that does not seem to be determinable (guess: about 100 pixels from the top). This becomes a problem if cameraOverlayView is used to present a mask to the user to help him positioning an object at a specific location within the capture. The alignment of the preview should be at the top of the screen (as on other devices) or there should be any way to determine the offset. Anyone has any idea how to solve that?
7
0
2.8k
Oct ’20