In my view I want to add a target which should be fired when I click the view. I can do the same through IB or I have done it for buttons even in code. However I have no idea how to do it for UIView programatically.
Anyone has done that before.
For clicking a
UIView you have to use
UITouch. This would only help in prompting an action. The
UIButton has a selector method whereas the UIView does not have any such method. Also , this is same for
UIImageViews etc also.