I am creating a custom UIView. I am wondering how can I replicate the UIButton behavior on this UIView.
I would like to be able to call addTarget to it like an UIButton.
I know that I can subclass UIControl and call
self.sendActionsForControlEvents(UIControlEvents.TouchUpInside);
but I would like to do it on an UIView since I am designing it on a XIB file.