Search code examples
iphoneiosobjective-cuiactionsheet

Creating model effect to new view using Storyboard with a UIActionSheet


I'm updating an app with more options when they click the add button. Before, when they clicked it, a certain screen came up with a model transition. This I could easily do from the .storyboard file, but since the UIActionSheet does not show up in the .storyboard file, I have no way to link it to the other scene. How do I do this?

This is the code I have right now:

- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
    switch (buttonIndex) {
        case 1:
            //  where somehow I need to get to the next scene using storyboard
            break;

        default:
            break;
    }
}

This may not matter, but I'm using a UITableView within a TabBar when the action sheet is called.


Solution

  • You can call performSegueWithIdentifier:sender:.

    You might want to make sure the action sheet is being dismissed first.