how do i set up NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact,those values though code

442 Views Asked by At

how do I set up NSZombieEnabled,SAutoreleaseFreedObjectCheckEnabled,MallocStackLoggingNoCompact
these values though code. I don't want to set up these values though Xcode edit scheme.Any idea?

1

There are 1 best solutions below

4
Krumelur On

On the iOS, this will be harder, since you need to execute the code before __CFInitialize is run, and you don't have control over how images are loaded (at least, not if you plan on releasing your app on the store).

Sorry about the confusion, my previous answer was for OSX, and I (wrongly) assumed it would be the same on iOS, but after some thought, it isn't since you don't have dynamic libraries.