当他们点击 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。
最佳答案
您可以调用performSegueWithIdentifier:sender:
。
您可能想确保首先关闭操作表。
关于iphone - 使用 Storyboard 和 UIActionSheet 为新 View 创建模型效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16205156/