Dynamically adding UIActionSheet buttons

Today’s useful Objective C resource, dynamic buttons on a UIActionSheet.  Awesome.

The UIActionSheet is a very useful class, and I use it frequently in my apps, but its initialisation method doesn’t allow you to add buttons from an array. Instead you apparently typically just add them hardcoded as an initialiser parameter – and almost all code examples on the web seem to use this method.

via Dynamically adding UIActionSheet buttons « Ajnaware’s Weblog.

This entry was posted in Apple, Programming. Bookmark the permalink.