建了一个uitableview
然后嵌入一个navigationcontroller
利用storyboard
从tableviewcell拉了一个segue
所以当我按下tableviewcell时候
可以切换到detail view
这都没问题
有一个情况是当我接收到notification的时候
我要直接push出detail view
但我发现在这样的情况下
我会push两次
导致error
google一下
发现有人跟我一样
但他们是call两次push method
他们用storyboard拉了之后
又在didSelectRowAtIndexPath中
call [self performSegueWithIdentifier:@"XX" sender:nil];
但是我并没有实作didSelectRowAtIndexPath
只有用storyboard
实在不知道如何找到这bug
![]()
![]()
感谢大家的帮忙
这一路走来
还好有乡民热心的协助