Вы можете создать несколько листов действий, как показано ниже:
actionSheet1 = [[UIActionSheet alloc] initWithTitle:@"Where to go"
delegate:self
cancelButtonTitle:@"cancel"
destructiveButtonTitle:@"Store 2"
otherButtonTitles:@"Store 3",@"Store 4",@"Store 5",@"View Store Profile",nil];
actionSheet2 = [[UIActionSheet alloc] initWithTitle:@"Where to go"
delegate:self
cancelButtonTitle:@"cancel"
destructiveButtonTitle:@"Store 1"
otherButtonTitles:@"Store 3",@"Store 4",@"Store 5",@"View Store Profile",nil];
actionSheet3 = [[UIActionSheet alloc] initWithTitle:@"Where to go"
delegate:self
cancelButtonTitle:@"cancel"
destructiveButtonTitle:@"Store 1"
otherButtonTitles:@"Store 2",@"Store 4",@"Store 5",@"View Store Profile",nil];
и после этого проверьте, какой лист действий вызывается - (void) actionSheet: (UIActionSheet *) actionSheet didDismissWithButtonIndex: (NSInteger) buttonIndex {
if(actionSheet==actionSheet1)
{
}
else if(actionSheet==actionSheet2)
{
}
else if(actionSheet==actionSheet3)
{
}