点击add
按钮后,我正在更新包含更多选项的应用。之前,当他们点击它时,某个屏幕出现了模型转换。我可以很容易地从.storyboard文件中做到这一点,但由于UIActionSheet没有显示在.storyboard文件中,我无法将其链接到其他场景。我该怎么做?
这是我现在的代码:
- (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;
}
}
这可能无关紧要,但我在调用操作表时在TabBar中使用UITableView。
答案 0 :(得分:2)
您可以拨打performSegueWithIdentifier:sender:
。
您可能希望确保首先解除操作表。