i need to create my own ImagePicker since the UIImagePickerController is not able to suite my needs. This ImagePicker should look and behave like the original UIImagePickerController but have an UIView between the camera preview and the buttons so that i can display images (e. g. a grid) as overlay image.
To do this, i will use the AV Foundation Framework which is, for whatever reason, easier to understand (for me) than the rotating behaviour which i would like to achieve. And here is the problem:
In the original UIImagePickerController, the “take photo” button always stays next to the iPhones home button but its content rotates to the right orientation. The “flash” and “switch camera” buttons stay always to the top edge.
How can i achieve such a behaviour? How many ViewControllers / Views do i need for this and how would the hierarchy look like?
it could be done in one view 😉
reasonable to me sounds one per button and a parent view …. so 4!?
apply a transform the view (CGAffineTransformRotate) to counter the devices rotation