Get handler of UIAlertAction in Swift
问题 How is it possible to get the handler of a UIAlertAction in Swift. It is set when initializing however I haven't found any property to get hold on the closure of the action. The closure is of type (UIAlertAction) -> Void however I would like to get the content of the closure so that I have some closure like () -> Void . Is this possible? Thanks for your answers 回答1: There is NO member/property exposed by the UIAlertAction class. However we can manage this by ourselves by subclassing