窗口在 setContentView 上消失一小段时间



这是我的代码:

- (void)showEditBackground
{
    editBackgroundController = [[EditBackgroundVC alloc] initWithNibName:@"BackgroundVC" bundle:nil];
    [window setContentView:editBackgroundController.view];
}

问题是:如果我调用此代码,窗口很快就会变得透明。在这么短的时间内,窗口将返回并加载视图。它看起来像一个闪光。

仅当 editBackgroundControllers 视图将 IKImageView 作为一个子视图时,才会发生这种情况。有什么想法吗?

谢谢

这是我对这个问题的解决方案:在某些视图中,IB中的"核心动画层"是"开"。

最新更新