Custom class to create an Alert with Buttons. How to add a completition handler?
问题 I was trying to create a custom alert and I am getting mad trying to implement a completition handler on the buttons. I have tried a few things, the last, create func array to pass in the selector addTarget function of the UIButton, but not working. (where the ****** are) The issue: "Argument of #selector does no refer to @obc method, property or initializer" The difficult coding part I can't do is to configure the selector with some code I receive from my view controller where I create an