问题
I've been reading up about the environmental variable NSZombieEnabled and I wondered whether it is currently possible to use this in a Monotouch runtime? If not, is there a suitable alternative that I'm just glazing over?
The reason I ask is because it may be helpful to find any leaks one may have in their app - I've tried to use Instruments with limited success and would like to try every possible option to ensure I have a nice and stable app.
Edit
I misunderstood what they were used for (it is Monday morning after all...) - but I would still be curious to know whether it is possible, or because of C#'s automated GC, whether they would be relevant?
回答1:
MonoTouch automatically enables NSZombieEnabled when running on the simulator debugger.
There is currently no way to enable this on the device.
来源:https://stackoverflow.com/questions/4920860/is-it-possible-to-use-nszombieenabled-in-monotouch