I have created one common view for the application where I have added container view.
This is a confusing structure also very common question for SO but I am stuck since a day..
In my case hierarchy is as
ViewController's View -> (within that) commonview's container view -> (within that)I am adding one another view(base view) with two views.(view 1,view 2)
[self.commonView.containerView addSubview:baseView];
[baseView addSubview:view1];
[baseView addSubview:view2];
[self.view addSubview:self.commonView];
For that I am getting click events for view1's buttons but not for the view2's buttons.
I have checked userInteraction and all other common things. Now I am not getting what is wrong. Also this structure is already used in application so I wont be able to change it.I just have to resolve this issue.