Swift, for some UIViews to their overall controller when clicked
问题 I have a DotBoss:UIViewController There are a dozen UIView in the scene, Dot:UIView (Some are direct subviews, some are further down.) There are even container views in the chain between the highest controller and the Dot items. The dozen Dot items know if they are tapped... class Dot:UIView { private var tap:UITapGestureRecognizer? = nil override func awakeFromNib() { tap = UITapGestureRecognizer(target:self, action: #selector(SnapDot.handleTap(_:))) self.addGestureRecognizer(tap!) } func