Transitioning on Automatic Reference Counting

  1. Forget about memory management methods.┬áThere’s no need to write more retain, retainCount, release, autorelease, dealloc.
  2. Use @autoreleasepool block instead of NSAutoReleasePool.
  3. Cast with __bridge_transfer or __bridge_retained instead of casting between id and void.
  4. Use weak or strong reference. Think about if the object is part of:
    1. controller: Use strong references
    2. view: Use __weak references
  5. Don’t use [super init] instead use self = [super init]