How can I Intentionally create a Zombie Object in Swift

47 Views Asked by At

Just like the title says I'd like to know how I can create a Zombie Object in swift.

The reason I ask is because I'm trying to learn how to use the Zombie Instrument.

I have a sneaking suspicion that there may be Zombie Issues somewhere in my app but I need to verify that I fully understand how to use the instrument first.

I think a good way to do this is

  1. Create a Zombie Object Intentionally
  2. Run Zombie Instruments
  3. Observe the Zombie in Instruments

Edit

Just to be clear, what I'm after here a couple of lines of swift code to demonstrate how zombies actually occur.

My question is 100% related to the suggested duplicate question however the duplicate question asked provided no satisfactory answer.

0

There are 0 best solutions below