Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 我的分段不会导致不同的导航控制器_Ios_Iphone_Swift - Fatal编程技术网

Ios 我的分段不会导致不同的导航控制器

Ios 我的分段不会导致不同的导航控制器,ios,iphone,swift,Ios,Iphone,Swift,我是swift的新手,所以具体一点会有很大帮助!: 基本上,我在我的swift文件中为TableView提供了这段代码 override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { if indexPath.row == 1 { self.performSegueWithIdentifier("Test1", sender: self)

我是swift的新手,所以具体一点会有很大帮助!:

基本上,我在我的swift文件中为TableView提供了这段代码

override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
    if indexPath.row == 1 {
        self.performSegueWithIdentifier("Test1", sender: self)
    }else {
        self.performSegueWithIdentifier("Test2", sender: self)
    }

}
在我的故事板中,我的片段设置如下: 抱歉,我没有足够的代表发布图像

标识符:Test2,Segue:Modal。 与另一个相同,但改为使用Test1作为标识符

任何帮助都将不胜感激


编辑:我得到的错误消息是线程1,在我发布的第一行代码的断点1处

由于segue已被弃用,请改用Show。在故事板中,单击序列号箭头,转到属性检查器,单击带有标签序列号的下拉列表,然后选择“显示”


只需在情节串连图板下制作segue节目


有错误信息吗?你的应用程序是否通过你的代码?你需要发送自我发送者吗?使用segue Show,因为modal已贬值。我想看看你的故事板截图。把它放在某个地方并给出一个链接。听起来你在代码中设置了一个断点,调试器在你的第一行就停止了。在代码一侧的蓝色条上单击鼠标右键,然后选择“删除断点”。或点击控制台上的播放符号继续。顺便说一句,不推荐使用modal,但如果modal是您想要的,您可以使用modal。