iphone - 使用 Storyboard 和 UIActionSheet 为新 View 创建模型效果

标签 iphone ios objective-c uiactionsheet

当他们点击 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/

相关文章:

c# 如何通过网页 (Safari) 在 iPAD 或 iPhone 上访问网络摄像头和麦克风

ios - 非空数组,访问第一个元素 : index out of range (Swift 2. 0)

ios - 从 givven 索引开始枚举 NSArray 双向搜索(无回绕)

ios - NSBundleResourceRequest bundlePath

javascript - js navigator.geolocation.getCurrentLocation() 的 Cocoa WebView 显示权限对话框

iphone - XML 阅读器类中讨厌的新行和空格

iphone - 使 textAlignment 在 UITableViewCellStyleSubtitle 中居中的解决方法

objective-c - 为什么 Objective-C 设计有基于三层的消息传递机制?

iphone - 在 iPhone 中发布 json 请求

ios - 如何在 Xcode Storyboard 中平均分配项目空间?