草庐IT

myStringValue

全部标签

ios - 使用 pushViewController 传递数据?

使用这段代码,我能够“继续”到我的ViewController的同一个实例funccollectionView(_collectionView:UICollectionView,didSelectItemAtindexPath:IndexPath){letstoryboard=UIStoryboard(name:"Main",bundle:nil)letvc=storyboard.instantiateViewController(withIdentifier:"DetailVC")self.navigationController?.pushViewController(vc,ani