UINavigationController pushViewController pauses/freezes midway through

后端 未结 3 1127
孤街浪徒
孤街浪徒 2021-01-01 19:14

I am pushing a view controller via:

[self.navigationController pushViewController:[[UIViewController alloc] init] animated:YES];

But the a

3条回答
  •  情书的邮戳
    2021-01-01 19:47

    In app delegate, set your window's background color to white.

    window?.backgroundColor = .white
    

    Also in the the pushed view controller, set its view to white.

    view.backgroundColor = .white
    

    I experienced the same issue when programmatically embedding my view controller in a UINavigationController.

提交回复
热议问题