- Must have a method similar to
-addButtonWithTitle:handler:
- Must still work if some buttons are added using the old
-addButtonWithTitle:
API. - Must still allow setting a delegate, and the delegate must work.
Note that #2 means that handler blocks must not simply be added to an array and located by button index, as there may be more buttons than there are handlers. This is a common error in popular implementations.