0

UIViewControllers are deallocated on the main thread. (Why is UIViewController deallocated on the main thread?)

My UINavigationController has a UIViewController which is very memory-heavy (SceneKit Scene with thousands of nodes).

When User pushes back button, this UIViewController gets dismissed.

However, UI gets blocked for around 4 seconds until deallocation finishes.

How can I avoid the UI getting blocked while deallocation completes?

Or, how can I be notified when deallocation finished, so I can show a spinner while the UI is blocked?

Community
  • 1
  • 1
Joaquin Llaneza
  • 451
  • 2
  • 15

1 Answers1

0

This problem was solved with the answer I got to this other question: Heavy SceneKit scene in UINavigationViewController takes too long to dealloc

Community
  • 1
  • 1
Joaquin Llaneza
  • 451
  • 2
  • 15