Tag Archives: blocks

Extending action sheets and alert views with blocks

This small example adds practical benefits to previous post on using associated objects in Objective-C categories.

Goal of this tutorial is to make UIActionSheet and UIAlertView simplier by avoiding usage of delegates and adding button tap handlers directly on creation with usage of Objective-C blocks. And we’ll also avoid subclassing.
Continue reading