Access a UICollectionView's parent UIViewController
My question is fairly straightforward. I have a UIViewController containing a UICollectionView. In initialising my cells, I add a gesture recogniser to each of them so that when you tap and hold it calls a function with a selector. This function then creates a UIAlertController which I want to present. (Basically, you hold a cell, it asks you if you want to delete it and if you say yes it eliminates it from the CollectionView) The problem is that I can't present a UIAlertController from my UICollectionView because it isn't a ViewController. I want to programmatically get the UIViewController