For those who are familiar with the
blocks in Objective-C, but cannot yet use them because of the need to support applications for ios under 4.0 versions, or eschew the patched PLBlocks
compiler , I suggest
running runtime blocks in the form of a static
libesBlocksRuntime.aThe runtime itself was pulled from the sources of the
compiler-rt project, and wrapped in
ESBlock block classes. Added missing methods - [NSArray enumerateObjectsUsingBlock:], etc. also UIView block extensions.
To connect to the project, it is enough to download the source code of the
project , and add it to dependencies for
example .
')
Write questions and suggestions in lichku - happy to answer everyone interested.
Here you can read about the series of blocks in Habré.