The `_statusBarTintColorLockingControllers` property in` UIApplication`, which stores the ViewController in memory

Using the new Xcode 8 memory debugger, I found that there was a ViewController in memory that shouldn't be there, and a strong link pointing to it came from this mysterious _statusBarTintColorLockingControllers array in UIApplication. Does anyone know where he comes from? And more importantly, how do I get my VC out of it?

memory debugger

+5
source share
3 answers

I was stuck with the same problem when I forgot to set any property to nil before rejecting my controller

0
source

I had the same problem, and it seems to come from overriding preferredStatusBarStyle variables. I deleted this and no longer saved the links.

0
source

_statusBarTintColorLockingControllers doesn't seem to be the real issue here. I had the same memory graph until I allowed the save cycle when I forgot weak about the delegation property.

0
source

All Articles