func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath){
if (indexPath.row == 0){
self.performSegueWithIdentifier("showDetail", sender: self)
}
if (indexPath.row == 1){
self.performSegueWithIdentifier("showSoldi", sender: self)
}
}
问题是两个视图控制器都被调用。首先是segue本身,然后是这个代码。有什么解释吗?