Hey guys,
I have a UIActionSheet with an undetermined number of buttons. I'll need to use the delegate method buttonClickedAtIndex: (or something similar) to decide what method to call when the user clicks a button.
The problem is: how do I decide which button is clicked when different buttons will appear at different indexes in different situations?
One solution is to look at the button's title and act on that - but that's ugly, non-localisable and just bad practise.
Any ideas?