更改窗口 rootViewController 后安全区域插入错误

jos*_*p04 5 ios autolayout ios-autolayout safearealayoutguide

我正在inputAccessoryView使用UIViewController. 一切正常,直到我改变UIWindows rootViewController。之后,safeAreaInsets肖像被报告为风景,反之亦然。

rootViewController仅当从具有键盘输入的位置进行更改时才会发生这种情况。

以下是重现该问题的示例项目:https ://github.com/jcavar/ChangeRootSafeArea

我想这是某种魔法UITextEffectsWindow造成的。我尝试在更改之前完全删除它rootViewController,但随后输入附件视图不再出现。

对此有什么想法吗?