I am using custom annotation view (Objective c)in which I have also added a view which consists of label and image, and when a user clicks on that view we have to move him on different view controller. To perform this I have added a UIButton having same height and width of custom view (which consist label and image view) and added it to annotation view, also I have added that custom view on annotation view. But the action method I have written corresponding to that button is not get called. I have checked the button by giving its background color and it is visible in annotation view. but, the functionality didn't call.
Can anyone help?