Replacing delegates in iOS with blocks.