How to launch a ViewController from a Non ViewController class?

后端 未结 7 2025
星月不相逢
星月不相逢 2020-12-22 09:48

the title says it all, i usually open ViewControllers like this

ListingViewController *listingView = [[ListingViewController alloc]init];
[self.navigationCon         


        
7条回答
  •  余生分开走
    2020-12-22 10:32

    Use the UICollectionViewDelegate method didSelectItemAtIndexPath for doing this and make sure that this delegate method is present in the view controller class implementing the UICollectionView.

提交回复
热议问题