Here's a nice trick for wrapping a method's implementation in a block, for example for logging the return value.
Have you ever written a method with a load of conditionals and return statements...
- (int)statusCode {
if (foo) {
return 1;
}
if (bar) {