Apps Tunes Logo Affiliated Business News
23

The UIAlertSheet, and UIActionSheet API’s can be difficult and cumbersome to use – often requiring excessive amounts of source code with all the delegates, callbacks, and switches required.
Blocks can definitely make these components much easier to use, and there are a number of implementations out there.  Recently I received a submission of a block based library, and I liked this one quite a bit – mainly because of the added button types, and the simple syntax for programming buttons.
The control is BlockAlertsAndActionSheets from Gustavo Ambroso, and is built on a control seen in a collection of categories and helpers from Peter Steinberger.
You can find the control on Github here, and Gustavo’s got a writeup on his blog.
Definitely a lot easier than creating UIAlertSheet’s and UIActionSheet’s with their API’s in the iOS SDK.
©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved..

Comments