As it is explained in the link, the copy / release amount must be zero. Therefore, if you use Objective-C, you can call [block copy]
and therefore [block release]
.
If you use C, you should use Block_copy()
and Block_release()
.
As Jasarien wrote, they probably do the same thing, so you can use them interchangeably. However, it is important that the agreement is consistent, so when you use [block copy]
, you would rather use [block release]
than Block_release()
source share