iOS - Positioning a custom overlay on camera (vertical alignment). Size of top black bar
问题 I'm searching a programmatic solution to following problem: I want to draw a custom overlay on camera (iOS). And I want it to be vertically central on the camera output view. I've accomplished to draw my custom view centrically relatively to the screen, but not to the camera picture. To do that, I need to get the size of the top black bar . How can I get it? The size of top and bottom bars are not equal, that's why the picture I get has this annoying y-offset to the bottom. Notice the offset