I have a problem with Keyboard Extension on iOS (real) device during recoding or phone call (iOS Simulator doesn't have red status bar). Because of the status bar increases 20 points, the custom keyboard also moves 20 points in Y-axis and decreases its height
to 196 points (it should be 216 points). However, when I print the view.frame
, it shows {{0.0, 0.0}, {320.0, 196.0}}.
If I use storyboard instead of programmatically adding views, it works fine. First I thought it's because of topLayoutGuide.length
, but it shows 0.0 in the debug area.
I has tried to find solution or any topics related to this problem but it seems like me alone facing it. :(