Give UIControl class to UIView then we can access that as UIButton.Add event like Touch Up Inside, touchDown… etc.
Updated on 02/21/201702/21/2017 Swift : Nil Collision Operator ,Save Your iPhone app from random crashes.