When designing a block-based API in ObjC, which approach is better, one completion block or two, one each for success and failure?
Let\'s say we have a method retrieving
In my opinion it's very subjective. Thinking of use case scenarios for your API would the user benefit more from a completion or success/fail?
If its something like a network access API ala AFNetworking probably go with success/fail - its more appropriate. However if the API is likely to finish successfully every time i.e. an animation block then completion is best