Call back blocks are not part of UIAlertView. We need add this functionality to UIAlertView. For this create Category of UIAlertView class that conforms UIAlertViewProtocol. In this category we will add a method that receives completion handler block. (To add methods/functionality to an existing class best practice is to make category of that class. Any methods declared in a category will be available to all instances of the original class). Following would be the steps:
Create Category of UIAlertView say as (AddBlockCallBacks)
Make a reference to store completion handler block in [Continue Reading...]










