How to launch a ViewController from a Non ViewController class?

后端 未结 7 1988
星月不相逢
星月不相逢 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:17

    You have to notify the ViewController, on cell click, on which UICollectionView exist. and on this controller you can push the desired controller

提交回复
热议问题