Skip to content

Instantly share code, notes, and snippets.

@synboo
Last active December 31, 2015 17:18
Show Gist options
  • Save synboo/8018979 to your computer and use it in GitHub Desktop.
Save synboo/8018979 to your computer and use it in GitHub Desktop.
nonatomic vs. atomic copy vs. strong(retain) vs. assign

nonatomic vs. atomic

  • Use nonatomic

copy vs. strong(retain) vs. assign

  • copy: Mutable系のサブクラスがあるNSObject
  • strong(retain): Mutable系のサブクラスがないNSObject
  • assign: NSObjectでないC由来のプロパティ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment