It stands for “block,” a piece of code that can be packaged into an object and used later. In your example, it indicates a completion handler that will be called later, presumably when the user clicks "OK" or some similar button to close the warning.
Blocks can also be used with Grand Central Dispatch, in which case they are used to create a unit of code that can be run in another thread, both synchronously and asynchronously.
source share