Creating a custom method with completion block

19,002

You may not believe it, but there is a Code Samurai Article which covers the exact ground of your question! About a third of the way down, they subclass NSOperation with an example completion block.

Share:
19,002
Kaan Dedeoglu
Author by

Kaan Dedeoglu

Proud maker of War7, iOS developer

Updated on July 20, 2022

Comments

  • Kaan Dedeoglu
    Kaan Dedeoglu almost 2 years

    Possible Duplicate:
    Implementing a method taking a block to use as callback

    I couldn't find any clear explanation about how to implement a method that executes a completion block.

    I know that NSOperation can be subclasses and used with calling setCompletionBlock: . Anyone knows if this is possible just by implementing in the m. file?

  • Kaan Dedeoglu
    Kaan Dedeoglu almost 12 years
    I saw that article but if you read my question, I was asking about a pure implementation way of doing it. But still thank you!