Perform Segue from UICollectionViewCell Button different from Cell Click
问题 I have a UICollectionViewCell , with a UIButton . And I have two different actions. The first one, when the user presses the cell, it will segue to another view with didSelectITemAt ; the second one, when the users presses the UIButton inside the cell. My problem is that on Swift Code of MyCollectionViewCell , I cant perform a segue, When I write the Code: self.performSegue(withIdentifier: "toStoreFromMyDiscounts", sender: nil) it says the error: Value of Type MyCollectionViewCell has no