hi iam creating an UIActionSheet with 2 buttons . now i want two each buttons do separate work . how can i declare my 2 buttons on the :
- (void)actionSheet:(UIActionSheet *)menu
didDismissWithButtonIndex:(NSInteger)buttonIndex
i use this code :
if (buttonIndex != [menu cancelButtonIndex]) {
// do somthing
}
but it means if user click any button except CANCEL BUTTON do somthing . Thank you .