On the iPhone, in the Calendar App when you press the “Delete Event” button a confirmation slides in from the bottom. Does anyone know of any example code for this, or is it just a short view presented modally with a custom background?
If this is made using a custom view, do you know where I can get a background graphic the same as the one used in the Calendar App?
Thanks in advance!
NB: I am not talking about a UIAlertView dialog box, but the slide-in confirmation with multiple buttons.
UIActionSheet is what you are looking for.
Here is some code example to get you started with:
This will slide in an action sheet from the bottom. It has 2 buttons. Yes and No.
When a user selects any button the
actionSheet:didDismissWithButtonIndex:method gets calledYour controller class will have to subscribe to the < UIActionSheetDelegate > protocol
Hope this helps!