As LLVM compiler with ARC option add retain, copy,release and autorelease for us automatically, but how does ARC determine whether to use retain or copy?
Thanks in advance:)
As LLVM compiler with ARC option add retain, copy,release and autorelease for us automatically,
Share
ARC doesn’t add
copy, that’s still your responsibility if you need copies. It only managesretainandreleasefor you. If you manuallycopysomething though it knows that you get a new object that it will have to release at some time.