iOS App: Terminated due to memory issue [Related to swiftSlowAlloc or UIImage] iOS App: Terminated due to memory issue [Related to swiftSlowAlloc or UIImage] objective-c objective-c

iOS App: Terminated due to memory issue [Related to swiftSlowAlloc or UIImage]


These are some possible causes that may cause a memory leak in your program even if using ARC:

  1. You set a strong reference to a parent in a child object. This causes a retain cycle.
  2. You set a strong reference to a delegate in an interface.
  3. You forgot to release an object when you do a toll-free bridging after transferring ownership.
  4. You forgot to set a weak reference to objects you passed in a block.