Still, this is an updated version of the block-based UIAlertView API I described in this post.
After using the code in my own projects, I made a number of small improvements. For example, it can now auto-close alert views when the app goes into the background, and you can get access to the alert view instance so you can programatically press buttons or dismiss it. I've also created Docset documentation.
Check it out here: https://github.com/rikiwarren/FMSAlertManager.