iosuipickerviewcontroller

iOS camera view - get size of camera area


Is there a way to find out the height of the camera view only(not the picker view)? I need to know so I can centre the cross hairs on my overlay view vertically - screenshot below

enter image description here


Solution

  • As an option - you can create custom camera overlay view with all custom controls on positions you want and then set:

    imagePickerController.cameraOverlayView = yourOverlayView;
    imagePickerController.showsCameraControls = NO;
    

    Source and more info: in this SO question