We cannot use NSAssertion inside blocks because this macro uses self to create a save loop, as commented here: http://www.takingnotes.co/blog/2011/09/27/making-nsassert-play-nice- with-blocks / My question is: what statements should I use inside the block?
I usually use NSCAssert()in these cases. It fails selfand is also useful for statements inside C-functions.
NSCAssert()
self
self , @weakify(self) @strongify(self) , .
@weakify(self)
@strongify(self)
Source: https://habr.com/ru/post/1618131/More articles:html2pdf add content to footer on each page - phpThe difference between authorized_keys and id_rsa.pub - rsaIs it possible to remove an item from the DOM? - javascriptThreeJS.dae Do not load textures - three.jsСортировка сортировки для парных в java - javaС++ io streams sync_with_stdio нет разницы - c++I can’t leave comments on Google+ - c #anano (python): elemental gradient - pythonWhy the switch (0) does not lead to the warning, and what if (0)? - cRails: Is this a precedent for unidirectional inheritance (STI)? - sqlAll Articles