Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Edited README to include info for addButtonItem method

  • Loading branch information...
commit 67bb8de46d6d1b681623eca91ce786040cc53099 1 parent b64b4dd
@gfontenot gfontenot authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
10 README.md
@@ -56,6 +56,16 @@ Once you've created these, you simply initialize your UIAlertView using the init
Again, this is designed to be fire and forget, so you initialize it, show it, and release it. It'll take care of cleaning up after itself.
+You can also add a RIButtonItem to the UIAlertView after initialization, just like you normally would:
+
+ [alertView addButtonItem:deleteItem];
+
+This is useful if building an UIAlertView, or UIActionSheet dynamically from an Array:
+
+ for (RIButtonItem *item in buttonItemArray) {
+ [alertView addButtonItem:item];
+ }
+
That's it!
The UIActionSheet category works virtually the same as the UIAlertView. Just check out the header for the initializer you need to use. It's very straightforward.
Please sign in to comment.
Something went wrong with that request. Please try again.